Question: Consider the following array implementation of stack: If the array index starts with 0, the maximum value of top that does not cause stack overflow
Consider the following array implementation of stack:
![#define MAX 10 Struct STACK { Int arr [MAX]; Int top -1;](https://dsd5zvtm8ll6.cloudfront.net/images/question_images/1706/9/8/0/73465be757e99fc11706980736283.jpg)
If the array index starts with 0, the maximum value of top that does not cause stack overflow is?
A. 8
B. 9
C. 10
D. 11
#define MAX 10 Struct STACK { Int arr [MAX]; Int top -1; }
Step by Step Solution
3.33 Rating (153 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
