GAT Subject
Engineering
Computer Science Civil Engineering Chemical Engineering Agricultural Engineering Mechanical Engineering Electronics and Communication
1. | Which of the following is the correct order of evaluation for the below expression? | |
A. | * / % + - = | |
B. | = * / % + - | |
C. | / * % - + = | |
D. | * % / - + = | |
Answer: Option A | |
Explanation: | |
C uses left associativity for evaluating expressions to break a tie between two operators having same precedence. |
|
Tutorial Link: |