1.

Which of the given function differs from the statement’errno is not neccessarily set on conversion error’?(a) atof()(b) atoi()(c) atol()(d) strtod()This question was posed to me by my school principal while I was bunking the class.My question comes from General Utilities topic in division C Library of C

Answer»

The correct option is (d) strtod()

EASY explanation - The function ATOI() and ATOL() are similar to strtol(), atof() is similar to strtod() except that errono is not necessarily set on CONVERSION error.



Discussion

No Comment Found

Related InterviewSolutions