Consider the following stack implemented using stack – # define SIZE 11 Struct…
RSSB Computer Instructor · Basic Computer Instructor · Paper 2 · 2022
Consider the following stack implemented using stack –
# define SIZE 11
Struct STACK
{
int arr [SIZE];
int top = -1;
}What would be the maximum value of top that does not cause the overflow of the stack?
- A.
8
- B.
9
- C.
11
- D.
10
Attempted by 1694 students.
Sign up free to check your answer
Sign up freeLoading lesson…