What is the maximum number of elements that can be stored in a stack of size N?
2025
What is the maximum number of elements that can be stored in a stack of size N?
- A.
N-1
- B.
N
- C.
N+1
- D.
None of the above
Attempted by 530 students.
Show answer & explanation
Correct answer: B
A stack of size N can store maximum of N elements, each in different stack positions starting from 0 to N-1.