InterviewSolution
Saved Bookmarks
| 1. |
Which of the following functions decomposes the input string into three pans: an initial, possibly empty, sequence of white-space characters?(a) strtod()(b) atof()(c) atol()(d) strtol()The question was posed to me in examination.Question is taken from General Utilities in chapter C Library of C |
|
Answer» CORRECT answer is (d) strtol() EASY explanation - The strtol() function is used to convert the initial portion of the string pointed to by, to long int REPRESENTATION. First, it decomposes the input string into three PANS: an initial, empty, white-space characters (as specified by the isspace function). |
|