Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ length of char array

char* example = "Lorem ipsum dolor sit amet";
int length = strlen(example);
std::cout << length << '
'; // 26
 
PREVIOUS NEXT
Tagged: #length #char #array
ADD COMMENT
Topic
Name
6+9 =