PUSH and POP operations on stack using an array with C program