What is the result of 5 - 2 + 1 ?
A. 2
B. 4
C. -2
D. 3
Answer: Option D
Solution(By Examveda Team)
Addition and subtraction have the same precedence and are evaluated left to right.Related Questions on Precedence and Associativity
A. 2
B. 4
C. -2
D. 3
Answer: Option D
Join The Discussion