1.

The______function is used to convert the initial portion of the string pointed to by, to unsigned long int representation.(a) strtod()(b) atol()(c) strtoul()(d) strtol()The question was posed to me in homework.I'm obligated to ask this question of General Utilities in chapter C Library of C

Answer»

Right choice is (c) strtoul()

To EXPLAIN: UNSIGNED long INT strtoul(const char *p, char **PTR, int base) function is used toconvert the initial part of the string in p to an unsigned long int value ACCORDING to the given base,it must be between 2 and 36 inclusive, or be the special value 0.



Discussion

No Comment Found

Related InterviewSolutions