LIFO in Array
Hi i Have questions, is it possible to make a LIFO program without using any pointers? and how could I do the elimination with a command like DELETE but without living any trash behind, for example i have the array
2 3 5 7 4 9
the last one in is 9, but when I use the delete command it erases the 9 but lives a 0 instead
2 3 5 7 4 0
and what I want to do is live that possition blank
2 3 5 7 4
a friend told me that using a for I could move the whole array when i delete the last number, like this:
2 3 5 7 4
I really need Help with this.
|