Answers for "how stack in made in c++"

C++
1

stack c++

#include <bits/stdc++.h> 

stack<int> stk;
stk.push(5);
int ans = stk.top(5); // ans =5
stk.pop();//removes 5
Posted by: Guest on November-02-2020

Browse Popular Code Answers by Language