Answers for "how measure the size of char array"

C++
1

how to get size of char array in c++

char* example = "Lorem ipsum dolor sit amet";
int length = strlen(example);
std::cout << length << '\n'; // 26
Posted by: Guest on January-24-2021

Code answers related to "how measure the size of char array"

Browse Popular Code Answers by Language