Electronics and Communication Engineering - Microprocessors - Discussion

Discussion Forum : Microprocessors - Section 2 (Q.No. 17)
17.
In Java 31% gives an answer
3
4
3 / 4
4 / 3
Answer: Option
Explanation:

Modulus operator gives the remainder of division as answer.

Discussion:
3 comments Page 1 of 1.

Aneesh Bhat said:   4 years ago
It has to be 31%9.

That is when 31 is divide by 9, remainder is 4.

Tejaswini said:   1 decade ago
Please give explanation.

Amrata Kamat said:   1 decade ago
How 31% gives an answer gives 4?

Post your comments here:

Your comments will be displayed after verification.