Showing posts with label WAP to find string within a string. Show all posts
Showing posts with label WAP to find string within a string. Show all posts

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 ();

}


Labels