Skip to content

Canergode/realloc-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Realloc Demo

This project demonstrates how to expand a dynamically allocated array using realloc, preserving existing data while adding space for new elements.

What I Learned

  • How to use realloc to resize a dynamically allocated array
  • How realloc preserves existing data when expanding memory
  • How to combine calloc and realloc for flexible memory management
  • How to fill newly allocated memory after realloc

About

Demonstrates dynamic memory reallocation using realloc to expand an array in C

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages