Which application of stack is used to ensure that the pair of parentheses is properly nested?

Q & ACategory: Data StructureWhich application of stack is used to ensure that the pair of parentheses is properly nested?
Admin Staff asked 4 years ago

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

1 Answers
Admin Staff answered 4 years ago

a) Balancing symbols