| Which of the following data structures can be used for parentheses matching?
Choose the correct option from below list
(1)n-ary tree
(2)queue
(3)priority queue
(4)stack
Answer:-(4)stack
Note:-For every opening brace, push it into the stack, and for every closing brace, pop it off the stack. | | |