Which of the following is the correct order of evaluation for the below expression?
$z=x+y^*z/4\%2-1$
precedence order of *,/,% are same and associativity is left to right so */% and similarly for +,- order are same and associativity is left to right and at last = has least precedence among them so it will be evaluated at last.
So (A) should be correct option.
64.3k questions
77.9k answers
244k comments
80.0k users