function in c++ to get the length of string code example Example: is it len function is aviable for c+= str.length();