Declaration and Initialization on C related Questions and Answers


Question :   Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1 ?
1. rem = 3.14 % 2.1;
2. rem = modf(3.14, 2.1);
3. rem = fmod(3.14, 2.1);
4. Remainder cannot be obtain in floating point division.
Answer :   3 - rem = fmod(3.14, 2.1);  

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter