+1 vote
in Data Structures & Algorithms I by (110k points)
When the corresponding end bracket/braces/parentheses is not found, what happens?

(a) The stack is popped

(b) Ignore the parentheses

(c) An error is reported

(d) It is treated as an exception

My question is taken from Application of Stacks topic in division Application of Stacks of Data Structures & Algorithms I

I have been asked this question in class test.

1 Answer

+1 vote
by (408k points)
selected by
 
Best answer
Correct option is (c) An error is reported

Best explanation: When the corresponding end bracket/braces/parentheses is not found, throw an error since they don’t match.

Related questions

Welcome to TalkJarvis QnA, a question-answer community website for the people by the people. On TalkJarvis QnA you can ask your doubts, curiosity, questions and whatever going in your mind either related to studies or others. Experts and people from different fields will answer.

Categories

...