Consider two binary operators \(\text{‘} \uparrow \text{’}\) and \(\text{‘}…

GATE · 2011 · CS · Computer Science & IT

Consider two binary operators ‘↑’\text{‘} \uparrow \text{’}  and ‘↓’\text{‘} \downarrow \text{’} with the precedence of operator ↓\downarrow being lower than that of the operator ↑\text{} \uparrow \text{}. Operator ↑\text{} \uparrow \text{} is right associative while operator ↓\downarrow is left associative. Which one of the following represents the parse tree for expression (7↓3↑4↑3↓2)(7 \downarrow 3 \uparrow 4 \uparrow 3 \downarrow 2)

Attempted by 163 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…