Q. What is the result of 5 % 2?

A
2
B
1
C
2.5
D
Error
Solution:

The modulo operator % returns the remainder, 5 % 2 = 1.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!