Uber Active member
| Subject: a big Doubt...! Thu Mar 18, 2010 3:37 pm | |
| i just want know that in stacks is it necessary to use shifting of array fo pushing and poping.......well it can also be done by ==> Top++ and Top--......
plz reply thankzz |
|
G-7 Active member
| Subject: Re: a big Doubt...! Thu Mar 18, 2010 4:32 pm | |
| yup...just use another variable to duplicate the 'top'..eg 'point' or 'topp' ...
and then for pushing just do stack[point] = stack[point-1]
it has the same effect as the top++ just as u said... |
|
Uber Active member
| Subject: Re: a big Doubt...! Thu Mar 18, 2010 9:28 pm | |
| gr8...thankzz for clearing my doubt... |
|
Sponsored content
| Subject: Re: a big Doubt...! | |
|
|
|