1.

The_______function converts the initial portion of the string pointed to by, to int representation.(a) atof()(b) atoi()(c) strtod()(d) atol()This question was posed to me in an interview for job.Asked question is from General Utilities topic in section C Library of C

Answer»

Right option is (B) atoi()

The best explanation: int atoi(const CHAR *str); The C library FUNCTION int atoi(const char *str) converts the STRING argument str to an integer (type int).



Discussion

No Comment Found

Related InterviewSolutions