Question
Which of the following operations are INCORRECT?
Answer: Option D
Was this answer helpful ?
float a = 3.14; a = a%3; gives "Illegal use of floating point" error.
The modulus (%) operator can only be used on integer types. We have to
use fmod() function in math.h for float values.
Was this answer helpful ?
More Questions on This Topic :
Question 1.
Which of the declaration is correct?
....
Submit Solution