Memory Management in C | Q - 7

Last Updated :
Discuss
Comments

What does realloc(ptr, 0) do?

Resizes memory to 0 but keeps the pointer valid

Same as free(ptr)

Creates an error

No effect

Tags:
Share your thoughts in the comments