Which application of stack is used to ensure that the pair of parentheses is properly nested?
A. Balancing symbols
B. Reversing a stack
C. Conversion of an infix to postfix expression
D. Conversion of an infix to prefix expression
Answer:B
Which application of stack is used to ensure that the pair of parentheses is properly nested?
A. Balancing symbols B. Reversing a stack C. Conversion of an infix to postfix expression D. Conversion of an infix to prefix expression