Dynamic Memory Allocation — Study Resources & PYQs
Dynamic allocation and management of memory in C.
- Estimated study time: 30 minutes
Study resources
- Dynamic Memory Allocation section - GeeksforGeeks tutorial (Article) — Covers malloc, calloc, realloc and free, plus memory leaks and the program's memory layout.
- 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 dynamic memory concepts alongside pointer basics, indirection, pointer arithmetic and function pointers in one place.
- NPTEL — Programming and Data Structures, IIT Madras (Article) — Current NPTEL course covering C programming constructs, arrays, pointers, functions, recursion, searching and sorting.
Dynamic Memory Allocation previous year questions
- (a) Define Array. Write a program in C to store elements in an array and print it. (b) What is Dynamic memory management? Explain different dynamic memory mana…
- (a) What are the different techniques of memory management? Explain with examples. (10) (b) Define the concept of using pointers in C. Write a program to find…
- (a) Explain different methods of dynamic memory allocation with example. (7) (b) Discuss different disk input and output functions and Console input-output fun…
- (a) Define the concept of using pointers in C. Write a program to find the palindrome of a number using pointers. (08) (b) What is dynamic memory allocation? W…
Taught in these subjects
- COMPUTER PROGRAMMING — BCST11 · Government College of Engineering and Technology, Jammu
- FUNDAMENTALS OF PROGRAMMING USING C — BCST21 · Government College of Engineering and Technology, Jammu
- Computer Programming — BCST11 · Government College of Engineering and Technology, Jammu
- Computer Programming — CST3101 · Government College of Engineering and Technology, Jammu
- Fundamentals of Programming Using C — CST3201 · Government College of Engineering and Technology, Jammu