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
195 views
asked Apr 8, 2014 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 Apr 8, 2014 by rock Expert (14,990 points)

Related questions

0 votes
1 answer 35 views
35 views asked Jun 2, 2011 by carlton Sr Member (3,990 points)
0 votes
1 answer 56 views
56 views asked Dec 28, 2013 by john Guru (27,140 points)
0 votes
1 answer 19 views
0 votes
1 answer 26 views
0 votes
1 answer 1,107 views
...