Gate2018 cs Q55

0. Consider the following parse tree for the expression a#b$c$d#e#f, involving two binary operators $ and #.

  • Option : A
  • Explanation :
    here $ is higher precedence than # $ is left associative because in the sub expression b $ c $ d, b $ c will be evaluated first as per given tree.
    As per the given tree structure right # if higher precedence than left #.
    Hence it is right associative.
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 *