Question 6
In a stack implementation using an array of size N, pushing an element when 'top == N - 1' causes:
When top reaches the maximum allocated array capacity (N - 1), attempting to push another item results in Stack Overflow. For an array indexed from 0 to N-1, top == N-1 means all N positions are occupied. The push must be rejected or capacity must be increased in a resizable implementation.