Which of the following array position will be occupied by a new element being pushed for a stack of size N elements(capacity of stack > N)?
A. S[N-1]
B. S[N]
C. S[1]
D. S[0]
Answer:B
Which of the following array position will be occupied by a new element being pushed for a stack of size N elements(capacity of stack > N)?
A. S[N-1] B. S[N] C. S[1] D. S[0]
Explanation: As a result, the elements are moved at the end, resulting in N.