Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Home
»
C Programming
»
Expressions
Which of the following is the correct order of evaluation for the below expression? z = x + y * z / 4 % 2 - 1
* / % + - =
= * / % + -
/ * % - + =
* % / - + =
Show Answer
Correct Answer:
* / % + - =
Explanation:
C uses left associativity for evaluating expressions to break a tie between two operators having same precedence.
← Previous
Next →
Discussion & Comments
No comments yet. Be the first to comment!
Name:
Comment:
Post Comment