CP OE Q18

0. The expression 5 -2 - 3 * 5 - 2 will evaluate to 18, if

  • Option : 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.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *