+ 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

16th Jun 2019, 2:36 AM
Kartik Singh
Kartik Singh - avatar
1 Resposta
- 1
Answer me
16th Jun 2019, 2:37 AM
Kartik Singh
Kartik Singh - avatar