Memory Management in C | Q - 9

Last Updated :
Discuss
Comments

What happens if you free() a pointer that was never dynamically allocated?

Nothing

Compiler warning

Undefined behavior

Graceful termination

Tags:
Share your thoughts in the comments