flâneur — a map of the web's best reading

Dynamic allocation - Learn C - Free Interactive C Tutorial

learn-c.org · 491 words · saved by 1 readers

learn-c.org is a free interactive C tutorial for people who want to learn C, fast.

Dynamic allocation - Learn C - Free Interactive C Tutorial Welcome / Dynamic allocation Dynamic allocation Dynamic allocation of memory is a very important subject in C. It allows building complex data structures such as linked lists. Allocating memory dynamically helps us to store data without initially knowing the size of the data in the time we wrote the program. To allocate a chunk of memory dynamically, we need to have a pointer ready to store the location of the newly allocated memory. We can access memory that was allocated to us using that same pointer, and we can use that pointer to f

Explore this link on the map →

related reading