Which of the following is the correct syntax of the function strtoul()?

Which of the following is the correct syntax of the function strtoul()?
A. unsigned long int strtoul(const char *n, char **ptr, int base)
B. unsigned long int strtoul(const char *n, char **ptr)
C. unsigned long int strtoul(const char *n)
D. int strtoul(const char *n)
 
Answer: a
Explanation: usigned long int strtoul(conmt char *n, char **ptr, int base); The strtoul() function is used to convert the initial portion of the string pointed to by n to unsigned long int representation.
 

Tìm kiếm

Back
Top