?
What is the result of the expression 10 - 5 * 2 in C?
Answer & Solution
Correct Answer:
Option
C
In C, arithmetic expressions follow the order of precedence, where multiplication and division have higher precedence than addition and subtraction. Therefore, in the expression 10 - 5 * 2, the multiplication (5 * 2) is performed first, resulting in 10 - 10, which indeed equals 0.
Join the Discussion
Login to post a comment or share your explanation.
Login