I'm trying to implement a dynamic stack using an array. The user enters the number of the letters of the word he wants to put in the stack. If the stack is empty then a block is created to hold the information that the user passes to the stack. If not then the stack is reallocated so it can hold one more block of information(word). Then the user enters the word that he wants to be put in the stack(At the part that the index of the stack is printed). The program seems to crash after the second word is done entering the stack.I'm trying to implement a dynamic stack using a