Important MCQ

For integers, the value of 15 / 4 is

Q.For integers, the value of 15 / 4 is

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