What is the result of the expression (6 - 2) * (1 + 2) in C?
A. 12
B. 18
C. 9
D. 4
Answer: Option A
Solution(By Examveda Team)
In C, arithmetic expressions follow the order of operations (PEMDAS/BODMAS), where parentheses have the highest precedence. Therefore, the expression (6 - 2) is evaluated first, resulting in 4, and (1 + 2) is evaluated as 3. Then, these results are multiplied: 4 * 3, which equals 12Related Questions on Operators and Expressions
What does the ++ operator do in C when applied to a variable?
A. Decrements by 1
B. Adds 1
C. Doubles the value
D. Leaves it unchanged
Join The Discussion