Need Assistance?

support@tutorialshub.in

Dynamic Memory Allocation

Resizing Memory with realloc()

ADVERTISEMENT
C Programming Free Lesson
5 min read
ADVERTISEMENT

Assign realloc() to a temporary pointer first so you don't lose your original pointer if allocation fails!

ADVERTISEMENT
Hi, I'm Tuby! Here to help you