C Program to Find Length of a String

This is a simple program written in C programming language to find the length of a string entered by your while execution of this program.

This program will calculate the length of string without using the strlen() function. It will count the string length by using the for(i = 0; s[i] != '\0'; ++i); loop.

Output is:

C Program to Find Length of a String

If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.

Recommended Posts:

Article Tags: , ,