Overview of C 17
(ii)
Res 5 (i < j)? sum 1 i : sum 1 j;
(iii)
q 5 (a 5 5 0)?0:(x/y);
It may be noted here that the conditional operator (? :) is also known as a ternary operator because
it operates on three values.
1.9.4 Order of Evaluation of Expressions
A number of logical and relational expressions can be linked together with the help of logical operators
as shown below:
(x , y) || (x . 20) && !(z) || ((x , y) && (z . 5))
For a complex expression such as given above, it becomes difficult to make out as to in what order
the evaluation of sub-expressions would take place.
In C, the order of evaluation of an expression is carried out according ...