Page 1 of 1

1. What is the state of the stack after the following sequence of pushes and pops: Stack *s; s->push( 3 ); s->push( 5 );

Posted: Sat May 14, 2022 2:58 pm
by answerhappygod
1 What Is The State Of The Stack After The Following Sequence Of Pushes And Pops Stack S S Push 3 S Push 5 1
1 What Is The State Of The Stack After The Following Sequence Of Pushes And Pops Stack S S Push 3 S Push 5 1 (22.89 KiB) Viewed 61 times
1. What is the state of the stack after the following sequence of pushes and pops: Stack *s; s->push( 3 ); s->push( 5 ); s+push( 2 ); s->push( 15 ); s->push( 42 ); s-popO; spopO; s+push( 14 ); s>push( 7); spopO; s+push( 9 ); spopO; spopO; s->push( 51 ); spopO; spopO;