General Questions

Question 6 :

In which order do the following gets evaluated

1. Relational

2. Arithmetic

3. Logical

4. Assignment


A). 2134
B). 1234
C). 4321
D). 3214
Answer : Option A

Explanation :

2. Arithmetic operators: *, /, %, +, -

1. Relational operators: >, <, >=, <=, ==, !=

3. Logical operators : !, &&, ||

4. Assignment operators: =