A

Admin • 833K Points
Coach

Q. Which of the following data types will generate an error on the modulo % operation?

  • (A) float
  • (B) int
  • (C) short
  • (D) char
  • Correct Answer - Option(A)
  • Views: 25
  • Filed under category C Programming
  • Hashtags:

Explanation by: Admin

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>.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.