ghafar azizi
7 years ago

Consider the following array implementation of stack: #define MAX 10 Struct STACK { Int arr [MAX]; Int top = -1; } If the array index starts with 0, the maximum value of top which does not cause stack overflow is?

A. 8 or 10

B. 9

C. 11

D. 15


This Question Belongs to User Ask Question >> Miscellaneous

Join The Discussion

Comments (2)

  1. Anuva Paul
    Anuva Paul:
    6 years ago

    8

  2. Tapas Pal
    Tapas Pal:
    6 years ago

    B

Related User Ask Questions