All mock tests are FREE till 31 December — register to save your progress

Consider the operators used in C Programming given below:
A. &&
B. +=
C. >>
D. >=
E. ?:
Choose the correct order of precedence of the operators given above (higher to lower):

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: C. C, D, A, E, B

Explanation

C precedence (high to low): shift >> , then relational >= , then logical && , then conditional ?: , then assignment += . So C, D, A, E, B.

More Programming Languages and Computer Graphics questions