Expressions

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

A * / % + - =

B = * / % + -

C / * % - + =

D / * % - + =

ANS:A - * / % + - =

C uses left associativity for evaluating expressions to break a tie between two operators having same precedence.



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.