InterviewSolution
Saved Bookmarks
| 1. |
The______function returns a pointer to the first character of a token.(a) strstr()(b) strcpy()(c) strspn()(d) strtok()The question was asked during an internship interview.My question is taken from String Operations in section String Operations in C of C |
|
Answer» CORRECT ANSWER is (d) strtok() The EXPLANATION: The strtok() function returns a pointer to the first character of a TOKEN, if there is no token then a null pointer is returned. |
|