C Books Guide and List
C++ Books Guide and List
Best Java Books

3,749 questions

4,049 answers

114 comments

10,705 users

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

0 votes
197 views
asked by sara Guru (24,570 points)

1 Answer

0 votes
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.
answered by rock Expert (14,990 points)

Related questions

0 votes
1 answer 38 views
0 votes
1 answer 65 views
0 votes
1 answer 19 views
0 votes
1 answer 26 views
...