find length of a string c++ code example
Example: length of a string c++
string str ="hello world";
//different ways to find length of a string:
str.length();
str.size();
string str ="hello world";
//different ways to find length of a string:
str.length();
str.size();