179. C Program to Work as Strchr () Using Pointers.
How does this program work?
- This Program is used to work as strchar() using pointers.
Here is the code
#include <string.h>
int main ()
{
const char str[] = "Skill Pundit is better partner for world";
const char ch = 'P';
char *p;
p = strchr(str, ch);
printf("String starting from %c is: %s", ch, p);
return 0;
}