Showing posts with label WAP to find the length of any string. Show all posts
Showing posts with label WAP to find the length of any string. Show all posts

STRING LENGTH

WAP to find the length of any string

void main ()

{

char ch [20];

int l;

clrscr ();

printf ("Enter String: ");

gets (ch);

l=strlen(ch);

printf ("Length of string is %d",l);

getch ();

}


Labels