Realloc Invalid Pointer in C

you said ‘I copy the pointer to this array into another variable’. The problem is as soon as you do a realloc, the original pointer is no longer valid. I dont see the reason to copy the pointer to a variable?

Leave a Comment