1.

Queue data structure works on the principle of ____________(a) Last In First Out (LIF0)(b) First In Last Out (FILO)(c) First In First Out (FIFO)(d) Last In Last Out (LILO)This question was addressed to me in semester exam.My question is based upon Static vs Dynamic Memory Allocation topic in section Dynamic Memory Allocation in C of C

Answer»

Right option is (c) FIRST In First Out (FIFO)

Easy explanation - QUEUE is a linear DATA structure which works on the principle of first in first out. This means that the first ELEMENT to be inserted in a queue will be the first one to be REMOVED.



Discussion

No Comment Found

Related InterviewSolutions