Question: 21 Write the code outputs the following ? Stack S; S.push(100); S.push (200); S.push (300); S.push (400); S.push (500); int j= S.pop(); int i= S.pop();

 21 Write the code outputs the following ? Stack S; S.push(100);

21 Write the code outputs the following ? Stack S; S.push(100); S.push (200); S.push (300); S.push (400); S.push (500); int j= S.pop(); int i= S.pop(); S.push(i); S.push (S.pop()); while (!S.empty_stack()) { i=S.pop(); cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!