C++ Program to Find String Length

Write a C++ Program to Find String Length with an example. This programming language has a length function to find the string characters. #include<iostream> #include<string> using namespace std; int main() { string txt; cout << “\nPlease Enter the String to find Length = “; getline(cin, txt); int len = txt.length(); cout<< “\nThe Length of ‘” … Read more