Question: 9 a-c) Abstract syntax tree (12 pts) a) Show the expression tree (special case of AST) for 1 * 2 + (3 + 4) *
9 a-c) Abstract syntax tree (12 pts)
a) Show the expression tree (special case of AST) for 1 * 2 + (3 + 4) * 5
b) Show the AST for the logical expression/condition: p != NULL && x > 0
c) Consider the cool conditional operator :? In C. Show how this could be represented as an AST use this statement as your example: x = y > 7 ? z + 2 : z 2;
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
