Elements present in stack variable top - Data Structure
Q. How many elements are present in the stack if the variable top exhibits pointing towards the topmost element in the Array?- Published on 28 Aug 15a. top +1
b. top - 1
c. zero
d. infinite
ANSWER: top +1