Important MCQ

For integers, the value of 7 / 2 is

Q.For integers, the value of 7 / 2 is

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