dynamic memory allocation — Study Resources & PYQs
Runtime allocation and deallocation of memory using C memory-management functions.
- Estimated study time: 30 minutes
Study resources
- Dynamic Memory Allocation in C (GeeksforGeeks) (Article) — Explains heap memory allocation using malloc(), calloc(), realloc() and free() from stdlib.h, including common pitfalls like memory leaks.
- Master Pointers in C: 10X Your C Coding! (Video) — Comprehensive video covering pointer basics, indirection, pointer arithmetic, pointer-to-pointer, void pointers, and function pointers in one place.
Taught in these subjects
- FUNDAMENTALS OF PROGRAMMING USING C — CST3201 · Government College of Engineering and Technology, Jammu
- COMPUTER PROGRAMMING — CST3101 · Government College of Engineering and Technology, Jammu