I have a stack that I've allocated on the heap
But later on in the code I try to delete stack and I get a segfault. What could cause me to not be able to delete this?Code:
stack = new char[STACK_SIZE];
I'm using the debugger and the memory address of stack doesn't change between when I make it and when I delete it.