Sail E0 Webinar
Question

Which of the following is the correct order of evaluation for the below expression?
z = x + y * z / 4 % 2 - 1


Options:
A .  * / % + - =
B .  = * / % + -
C .  / * % - + =
D .  * % / - + =
Answer: Option A

C uses left associativity for evaluating expressions to break a tie between two operators

 having same precedence.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers