Home »

What is a modulus operator? What are the restrictions of a modulus operator?

Question ListCategory: cWhat is a modulus operator? What are the restrictions of a modulus operator?
alisataylore190 author asked 9 years ago
1 Answers
jully882 author answered 8 years ago

A Modulus operator gives the remainder value. The result of x%y is obtained by (x-(x/y)*y).
This operator is applied only to integral operands and cannot be applied to float or double.

Please login or Register to Submit Answer