CP OE Q7

0. The expression 5 - 2 - 3 * 5 - 2 will evaluate to 18, if - is left associative and

  • Option : C
  • Explanation :
    5-2-3*5-2 will yield 18, id 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 *