Answers for "write a function to pass a char array as an argument and find length of string in c++"

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 "write a function to pass a char array as an argument and find length of string in c++"

Browse Popular Code Answers by Language