Vidyalelo
C Programming · Q223

Standard Library Functions

Programming · C Programming · question 223

Q223

Which of the following statement is correct? double x, y, z; x = 5.123456; z= modf(x, *y);

A.
y stores integer part of x, z returns fractional part of x
Answer
B.
y stores integer part of x, z returns integer part of x
C.
y stores fractional part of x, z returns integer part of x
D.
y stores fractional part of x, z returns fractional part of x

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board