Mega Code Archive

 
Categories / C++ / Data Type
 

Strchr( ) function

#include <stdio.h> #include <string.h> char s1[20] = "What is a friend?"; char *answer; int main( ) {  answer=strchr(s1,' ');  printf("After the first blank: %s\n",answer);  return (0); }