ExamVeda
Login
Home
Operators and Expressions
?

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.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.