Given an expression tree, evaluate the expression and obtain a paranthesized for
ID: 3637210 • Letter: G
Question
Given an expression tree, evaluate the expression and obtain a paranthesized form of the expression.Explanation / Answer
The code below prints the paranthesized form of a tree. infix_exp(p) { if(p) { printf("("); infix_exp(p->left); printf(p->data); infix_exp(p->right); printf(")"); } } Creating a binary tree for a postfix expression mynode *create_tree(char postfix[]) { mynode *temp, *st[100]; int i,k; char symbol; for(i=k=0; (symbol = postfix[i])!='