Sample code here:
static class stack
{
int top=-1;
char items[] = new char[100];
void push(char x)
{
if (top == 99)
System.out.println("Stack full");
else
items[++top] = x;
}
}
What exactly happens when items[++top] occurs?