how to find size of string in cpp 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();