reopened by
3,905 views
2 votes
2 votes
A stack of size (1 to N) and the initial position of top pointer is 0.
get(i,S) is aroutine to get ith element from stack 'S' with respect to top.
then,what is the underflow condition on stack to perform get() operation?
$A) top-i<N$
$B) top-i+1<=N$
$C) top-i<=0$
$D) top-i+1<=0$
reopened by

1 Answer

4 votes
4 votes

Option D

Related questions

3 votes
3 votes
3 answers
1
0 votes
0 votes
1 answer
2
Abhrajyoti00 asked Oct 29, 2022
718 views
Can there be “Stack Overflow” in Linked list Implementation of stack? If Yes, how?