function in c ++ whic return s string length code example Example: length of string in c++ str.length();