Explanation
The correct answer is (a) 0.
Explanation
To evaluate this expression, we must follow the C language operator precedence rules. The expression is:
-x + j == x > n >= m
Step-by-step Evaluation:
Unary and Arithmetic Operators: Unary minus (−) has the highest precedence, followed by addition (+).
−x=−7.5
−x+j=−7.5+(−1.0)=−8.5
Relational Operators: The remaining operators are == (equality), > (greater than), and >= (greater than or equal to). Their precedence is:
The expression effectively becomes:
-8.5 == ((7.5 > 1.0) >= 2.0)
Evaluating the inner comparisons:
(7.5 > 1.0) is true, which evaluates to 1.
(1 >= 2.0) is false, which evaluates to 0.
Final Comparison:
Since −8.5 is not equal to 0, the condition is false. In C, a false condition evaluates to 0.