Sorry! Posting Assignment is allowed only for commercial accounts.
void solve() { stack<int> s; s.push(1); s.push(2); s.push(3); for(int i = 1; i <= 3; i++) { cout << s.top() << " "; s.pop(); }}
What is the range of values that can be stored by int datatype in C?