Best collection of C programs
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
Tuesday, January 4, 2011
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 ();
}
Older Posts
Home
Subscribe to:
Posts (Atom)