?
What is the result of the expression 3 * (4 + 2) in C?
Answer & Solution
Correct Answer:
Option
A
> In C, arithmetic expressions follow the order of operations (PEMDAS/BODMAS), where parentheses have the highest precedence. Therefore, the expression 3 * (4 + 2) is evaluated as follows: First, the expression inside the parentheses is calculated (4 + 2), which results in 6. Then, the multiplication is performed: 3 * 6, which indeed equals 18.
Join the Discussion
Login to post a comment or share your explanation.
Login