ExamVeda
Login
Home
Operators and Expressions
?

What is the result of the expression 5 + 7 * 2 in C?

Answer & Solution
Correct Answer: Option A
In C and many programming languages, mathematical expressions follow the operator precedence rules. Multiplication (*) and division (/) have higher precedence than addition (+) and subtraction (-).

So, when evaluating the expression "5 + 7 * 2," the multiplication is performed before addition:

5 + (7 * 2) = 5 + 14 = 19

Therefore, the result of the expression "5 + 7 * 2" in C is Option A: 19.
Examveda
Question posted by Examveda
Community

Join the Discussion

1 Comment
Raj Kishan
Raj Kishan 3 years ago
How