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?

  1. A.

    N-1

  2. B.

    N

  3. C.

    N+1

  4. 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.

Explore the full course: Cocubes Preparation