Important MCQ

The value of 2 + 3 * 4 is

Q.The value of 2 + 3 * 4 is

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