1.

A range error occurs if the result of the function cannot be represented as a value.(a) int(b) short int(c) double(d) floatI had been asked this question during an interview for a job.Query is from Mathematical Functions in chapter C Library of C

Answer» RIGHT OPTION is (c) DOUBLE

Explanation: if the result of the function cannot be REPRESENTED as a double value, a range error OCCURS. If the result overflows (the magnitude of the result is so large that it cannot be represented in an object of the specified type), the function returns the value of the macro HUGE_VAL, with the same sign as the correct value of the function.


Discussion

No Comment Found

Related InterviewSolutions