Which of the following functions decomposes the input string into three pans: an initial, possibly empty, sequence of white-space characters?

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()
 
Answer: d
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).
 

Tìm kiếm

Back
Top