//String Processing using strstr function.
#include<stdio.h>#include<string.h>
int main()
{
char str1[10]="12345", str2[10]="23";
int n;
n=strstr(str1,str2);
puts(n);
return 0;
}
//Output
2345
This blog assists in mastering C and C++ programming skills from basics to advanced levels.
No comments:
Post a Comment