Dynamic memory allocation — Study Resources & PYQs
Runtime allocation and deallocation of memory using dynamic memory management functions.
- Estimated study time: 30 minutes
Study resources
- C structs and Pointers - Programiz (Article) — Same topic with a fuller example, including dynamically allocating structures. Links naturally into the dynamic memory allocation topic in Unit 6.
- Dynamic Memory Allocation section - GeeksforGeeks tutorial (Article) — Covers malloc, calloc, realloc and free, plus memory leaks and the program's memory layout. A dangling pointer is what you get from using a pointer after free, which this section explains.
Taught in these subjects
- COMPUTER PROGRAMMING — CST3101 · Government College of Engineering and Technology, Jammu