Length of String

Program to find the length of string :

ALGORITHM

    1. [INITIALISE] count=0,i=0
    2. Input string, a[100]
    3. while a[i] is not equal to ”
    4. Increase count by1 ,i.e. count++
    5. PRINT count

C SOURCE CODE :

Leave a Reply

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