Examveda

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

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


This Question Belongs to C Program >> Standard Library Functions

Join The Discussion

Related Questions on Standard Library Functions