UsefulLinks
Computer Science
Programming
By Language
C Programming
1. Introduction to C Programming
2. Development Environment Setup
3. Basic Program Structure
4. Variables and Data Types
5. Operators and Expressions
6. Input and Output Operations
7. Control Flow Statements
8. Functions
9. Arrays
10. Pointers
11. Strings
12. Structures and Unions
13. Dynamic Memory Management
14. File Input and Output
15. Preprocessor
16. Advanced Programming Concepts
17. Best Practices and Style
13.
Dynamic Memory Management
13.1.
Memory Layout
13.1.1.
Program Memory Segments
13.1.2.
Stack vs Heap
13.1.3.
Memory Allocation Concepts
13.2.
Dynamic Allocation Functions
13.2.1.
malloc Function
13.2.2.
calloc Function
13.2.3.
realloc Function
13.2.4.
free Function
13.2.5.
Memory Allocation Patterns
13.3.
Dynamic Arrays
13.3.1.
Single-Dimensional Dynamic Arrays
13.3.2.
Multi-Dimensional Dynamic Arrays
13.3.3.
Resizable Arrays
13.4.
Memory Management Best Practices
13.4.1.
Memory Leak Prevention
13.4.2.
Dangling Pointer Avoidance
13.4.3.
Double Free Prevention
13.4.4.
Memory Initialization
13.5.
Common Memory Errors
13.5.1.
Buffer Overflows
13.5.2.
Use After Free
13.5.3.
Memory Leaks
13.5.4.
Uninitialized Memory Access
13.5.5.
Debugging Memory Issues
Previous
12. Structures and Unions
Go to top
Next
14. File Input and Output