Question about accessing variable in LIFO stack

Status
Not open for further replies.

sacrpio

Member level 3
Joined
May 24, 2004
Messages
56
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
500
Stack related query?????

Dear All,
Suppose there are one variable.
i copy 'A' to that variable & push this to Stack,
NOw i copy 'B' to that variable & push to stack,
now i copy 'C' to taht variable & push to stack,
At last i copy 'D' to that Variable & push to stack..

Now i want to access 'A', Is it possible?
If it is possible then where upper three variables will be stored? My stack is LIFO. How this takes internally.....
thankx
 

Re: Stack related query?????

Hello,

Why don't you try to implement a software stack management? Here is a sample of FILO type, from microchip.com. You could try to figure out the rest (to make it work the way you want it).

Trax
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…