In this program, we are going to share how to find the length of a string program in c++ programming language with the output. If you are a beginner and want to start learning the c++ programming, then keep your close attention in this tutorial as I am going to share a C++ program to find the length of a string with the output.
Copy the below C++ program and execute it with the help of Turbo C compiler. At the end of this program, We have shared the output of this program.
using namespace std;
char str = "Freeweb Mentor";
cout << "String Length = " << strlen(str);
String Length = 14
Liked this program? Do Like & share with your friends.
Article Tags: algorithm to find length of string, c++ program to reverse a string, c++ string length vs size, cpp program to find Length of String, how to find length of character array in c++, how to find length of string in c++ using strlen, strlen c++, word length c++