1.

The principle of stack is __________(a) First in first out(b) First in last out(c) Last in first out(d) Last in last outThe question was asked in an online quiz.Origin of the question is Recursion in section Miscellaneous Topics in C of C

Answer»

The correct choice is (c) Last in first out

To EXPLAIN: A stack is a last in first out(LIFO) data type. This MEANS that the last ITEM to GET STORED in the stack is the first item to get out of it.



Discussion

No Comment Found

Related InterviewSolutions