0

please help me in writing a code to implement stack using arrays , does stack follow LIFO or FIFO principle?

2
Contributors
1
Reply
2
Views
10 Years
Discussion Span
Last Post by n1337
0

LIFO.

Stack using arrays...? It might be a better exercise to implement a stack struct (that can be easily resized and whatnot). But if you really want...then I guess we could work through one with an array...

But first, read about stacks here:
http://en.wikipedia.org/wiki/Stack_(data_structure)

Once you understand the data structure, come back with your attempts and we can go from there.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.