91
GB
What is the output: class Stack{vectors; public:void push(int x){s.push_back(x);} int top()const{return s.back();} void pop(){s.pop_back();} bool empty()const{return s.empty();} int size()const{return s.size();}}; Stack st; st.push(1);st.push(2);st.push(3); cout<
IN
आउटपुट क्या है: क्लास स्टैक {वेक्टर; सार्वजनिक: शून्य पुश (इंट एक्स) {एस पुश_बैक (एक्स); ढेर सेंट; st.push(1);st.push(2);st.push(3); अदालत
A
332
332
B
123
123
C
Compile error
संकलन त्रुटि
D
Undefined
अपरिभाषित
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
top=3,size=3; pop; top=2. Output: 332.
व्याख्या (हिन्दी)
शीर्ष=3,आकार=3; जल्दी से आना; शीर्ष=2. आउटपुट: 332.