Machine-translated by Google. Questions are authored in English.
Top

Discussion

The modulus operator cannot be used with a long double.

  • A.True
  • B.False

Answer: A

Correct answer: True

The % operator requires integer operands, so it cannot be applied to float, double or long double. For a floating-point remainder the library provides fmodl() in <math.h>.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.