Vidyalelo
Data Structure · Q155

Introduction to Data Structures

Programming · Data Structure · question 155

Q155

Which of the following array element will return the top-of-the-stack-element for a stack of size N elements(capacity of stack > N)?

A.
S[N-1]
Answer
B.
S[N]
C.
S[N-2]
D.
S[N+1]

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board