In an array-based stack, which variable generally indicates the position of the topmost element?
Options
- A. Front
- B. Rear
- C. Top
- D. More than one of the above
- E. None of the above
Quiz Practice:
C. Top
Correct Answer: C. Top
Explanation: The Top variable maintains the index of the topmost element in an array-based stack.