+ 1
Find out the problem
#include<stdio.h> #include<conio.h> #include<string.h> #include<stdlib.h> main() { char *a; char *b; char *c; int i,j=0; printf("enter first string"); gets(a); printf("enter second string"); gets(b); c=strstr(a,b); for(;c!=NULL;) {c++; c=strstr(c,b); j++; } printf("%d",j); } printf("%d",j); } https://code.sololearn.com/WE6AWT7uOdUQ/?ref=app
1 Antwort
- 1
Answer me