What is a Stack, Heap and Queue ?
Hi !!
I have read some books to know exactly what is a stack a heap and a queue. But I couldnt find much information. What really is a stack or a heap ? Many books just mention that during program execution the variables are "pushed on to" a stack ( or was that a heap or a queue ??).Another confusion is FIFO. To illstrate the FIFO concept the "plates" example was given. But if something is accesed on a First In First Out basis, what happens to the other variables that are below this variable. Does this mean that in a FIFO sequence only the variable that is First In gets out first and the remaining variables just remain there? .
I tried to search for information but could not find much. I would be extremely thankful if someone could help me with these.
Could you suggest any good book/site for this ?
Hi !!
Thanks a lot for the answer. But could you tell me a good book or a site whre i could learn moer about stacks heap and queue. I was told that to be a good C/C++ programmer it is necessary to have a good understanding of these. Thanks again for the answer.