Best collection of C programs
Tuesday, January 4, 2011
FIND STRING
WAP TO FIND STRING WITHIN A STRING
void main ()
{
char *k="Borland International", *g, *p;
clrscr ();
printf ("Enter string to find: ");
gets (g);
p=strstr(k,g);
printf ("%s",p);
getch ();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment