Q. Which of the following data types will generate an error on the modulo % operation?
β
Correct Answer: (A)
float
Explanation: To execute the modulo between float values, we can use the function “fmod()” from the standard math library. Its prototype can be found in the standard header <math.h>.