Important MCQ

The value of 10 % 3 is

Q.The value of 10 % 3 is

A) 3
B) 10
C) 0
D) 1
Correct Answer:
Option D
Detailed Explanation:
D) 1 is correct. Arithmetic operators include +, -, *, /, %, ++ and --. Integer division produces an integer result; postfix uses the old value before updating, while prefix updates first.