ADVANCED TOPICS IN COMPILER DESIGN
CODE GENERATION FOR OBJECT ORIENTED LANGUAGES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
Which one is used for remainder in Java?
|
/
|
|
%
|
|
+
|
|
*
|
Explanation:
Detailed explanation-1: -The modulus operator returns the remainder of the two numbers after division.
Detailed explanation-2: -The remainder ( % ) operator returns the remainder left over when one operand is divided by a second operand. It always takes the sign of the dividend.
Detailed explanation-3: -The % operator is also known as the modulo operator. This operator returns the remainder when a number is divided by the second. It takes the sign of the dividend.
There is 1 question to complete.