Develop a program for push operation …

CBSE, JEE, NEET, CUET
Question Bank, Mock Tests, Exam Papers
NCERT Solutions, Sample Papers, Notes, Videos
Posted by Prabir Nayak 6 years, 5 months ago
- 1 answers
Related Questions
Posted by Prawar Narang 1 year, 7 months ago
- 1 answers
Posted by Priya Shukla 1 year, 6 months ago
- 1 answers
Posted by Hanni Pham 1 year, 5 months ago
- 0 answers
Posted by Kandeepan Jothivel 1 year, 7 months ago
- 2 answers
Posted by Hanni Pham 1 year, 5 months ago
- 1 answers
Posted by Syedali Fathima 1 year, 6 months ago
- 1 answers

myCBSEguide
Trusted by 1 Crore+ Students

Test Generator
Create papers online. It's FREE.

CUET Mock Tests
75,000+ questions to practice only on myCBSEguide app
myCBSEguide
Sia ? 6 years, 5 months ago
#include <iostream>
#include <stack>
using namespace std;
int main()
{
// Empty stack
stack<int> mystack;
mystack.push(0);
mystack.push(1);
mystack.push(2);
// Printing content of stack
while (!mystack.empty()) {
cout << ' ' << mystack.top();
mystack.pop();
}
}
1Thank You