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

Recommended Posts:


Prem Tiwari

An engineer by profession and a passionate blogger by heart. Founder of FreeWebMentor.com (A Programming blog for beginners), Tech Speaker at various forums. A part from this he is an open source enthusiast, WordPress Lover, Blogger, SEO, and Growth Strategic.

Article Tags: , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Solved Programs