1.

The C library function _________ breaks string s1 into a series of tokens using the delimiter s2.(a) char *strtok(char *s1,const char *s2);(b) char*strtok(char *s2,const char *s1);(c) char *strstr(char *s1,const char *s2);(d) char *strstr(char *s2,const char *s1);The question was asked in a national level competition.I would like to ask this question from String Operations in section String Operations in C of C

Answer» CORRECT choice is (a) char *strtok(char *s1,const char *s2);

EXPLANATION: The C LIBRARY function char *strtok(char *s1, const char *s2) breaks string s1 into a SERIES of tokens using the delimiter s2.


Discussion

No Comment Found

Related InterviewSolutions