[Solved] Data Structre of Stack in C


When you call CreateStack, the pointer is passed by value. The pointer that is returned by the call to malloc in your function is never assigned to the STACKHEAD.

Try writing a CreateStack function that returns a pointer to the stack that gets created. It should not take any arguments.

1

solved Data Structre of Stack in C