Pages

Showing posts with label To Find the Length of any string. Show all posts
Showing posts with label To Find the Length of any string. Show all posts

To Find the Length of any string

Monday, 8 July 2013
#include<stdio.h>
#include<conio.h>

void main ()
{
    char ch [20];
    int l;
    clrscr ();

    printf ("Enter String: ");
    gets (ch);
    l=strlen(ch);

    printf ("Length of string is %d",l);
    getch ();
}
Read more ...