Best collection of C programs
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 ();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment