Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ length of char*

#include <iostream>
#include <string.h>

using namespace std;

int main()
{
    char *str = "ABC";
    cout << strlen(str) << endl;
    return 0;
}
Source by www.cplusplus.com #
 
PREVIOUS NEXT
Tagged: #length
ADD COMMENT
Topic
Name
1+3 =