findi g the legnth of a string in 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();