Discussion :: Control Instructions - True / False Questions (Q.No.3)
|Ruby said: (Sep 20, 2012)|
|example for fmod:
float x=10.10,y=2.0, z;
|Snehal said: (Jul 25, 2013)|
|Is this means that modulus operator works ONLY on integers?|
|Darshan Patel said: (Dec 7, 2015)|
|It is not possible to perform modulo operator with float and double.|
|Pranouti said: (Jun 7, 2016)|
|If I am right, fmod(x,y) is a function. And the question is "The modulus operator cannot be used with a long double". Then the answer should be (B). Because we can not use modulus operator with float or double. For this, we use the function in math.h header file which is fmod().
I think the answer is B.
Post your comments here:
Email : (optional)
» Your comments will be displayed only after manual approval.