The expression 5 -2 - 3 * 5 - 2 will evaluate to 18, if
A. | - is left associative and * has precedence over - |
B. | - is rightt associative and * has precedence over - |
C. | - is right associative and - has precedence over * |
D. | - is left associative and - has precedence over * |
Answer : C Explanation : 5 - 2 -3 *5 -2 will yield 18, if it is treated as (5-(2-3)) * (5-2).i-e if - has precedence over * and if it associates from the right. |
|
Option: A Explanation : Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. |