1.

The ldexp() function multiplies a floating-point number by an integral power of 2.(a) true(b) falseThe question was posed to me during an interview.This intriguing question comes from Mathematical functions in chapter C Library of C

Answer»

Correct choice is (a) true

Easy explanation - double ldexp(double X, int exp);

The ldexp function multiplies a floating-point number by an integral POWER of 2. A range error may OCCUR. The ldexp() function RETURNS the value of x times 2 raised to the power exp.



Discussion

No Comment Found

Related InterviewSolutions