In this program, we are going to share a C program to find the length of the string. 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 string with the output.
We have designed this program for beginners for learning purpose. Copy below c program and execute it with c compiler to see the output of the program.
char str, len;
printf("Enter a string : ");
printf("Length of the string is %d",len);
Enter ‘x’ for exit.
Enter a string to find its length: This is an example of Python program
Length of the string = 36
Liked this program? Do Like & share with your friends.
Editorial Staff at FreeWebMentor is a team of professional developers leads by Prem Tiwari View all posts by Editorial Staff