Stack overflow is the term given when the stack is full and an element cannot be inserted into the stack anymore.
Stack overflow happens when top = Maxsize - 1