InterviewSolution
Saved Bookmarks
| 1. |
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)I had been asked this question during a job interview.The query is from General Utilities topic in portion C Library of C |
|
Answer» RIGHT choice is (a) unsigned long int strtoul(const char *n, char **ptr, int base) 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. |
|