निम्नलिखित प्रोग्राम द्वारा उत्पन्न आउटपुट क्या है?
// assume stack is implemented by default
a=stack()
for i in range(0,4):
a.push(i)
for j in range(0,4):
a.pop()
print(a.pop())
1
0
2
4
3
3
4
अंडरफ्लो(Underflow)
निम्नलिखित प्रोग्राम द्वारा उत्पन्न आउटपुट क्या है?
// assume stack is implemented by default
a=stack()
for i in range(0,4):
a.push(i)
for j in range(0,4):
a.pop()
print(a.pop())