1.

An error is thrown if the character ‘\n’ is pushed in to the character stack.(a) true(b) falseMy question comes from Application of Stacks topic in portion Application of Stacks of Data Structures & Algorithms II had been asked this question in a job interview.

Answer»

Correct answer is (b) false

The explanation is: The INPUT character ‘\n’ is accepted as a character by the evaluation of PREFIX expression algorithm.



Discussion

No Comment Found

Related InterviewSolutions