305 views
0 votes
0 votes
A stack is implemented as an array Stack of size N. TOS points to the current top of the stack . The initial value of TOS is -1. The code for push operation for a value in stack is given. fill EMPTY BOX 1 and EMPTY BOX 2

if( EMPTY BOX 1)

Stack[EMPTY BOX 2] = value;

1 Answer

Related questions

0 votes
0 votes
2 answers
2
Shahid Rabbani asked Jan 11, 2015
1,310 views
For every push pop>3 units time required. Do continuously 4 push afterward 4 pop. Then what is the average life time of stack.
0 votes
0 votes
1 answer
3
1 votes
1 votes
1 answer
4
R S BAGDA asked May 3, 2022
529 views
char c1 = -128 , c2 c3;c2=c1+10; c3=c1-10;printf(c3);(ANS= c3=+118 why???????)