engineering recuitment UKPSC Polytechnic Lecturer Mock Test 2024 Programming and Data Structure Stack
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 the top that does not cause the overflow of the stack?
1
9
2
8
3
11
4
10