srdusr
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--languages/c.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/languages/c.md b/languages/c.md
index 58a309e..e80652b 100644
--- a/languages/c.md
+++ b/languages/c.md
@@ -182,3 +182,10 @@ int value = *pointerName;`
- scanf("%d", &<variable>); // Reads input from the user
- - -
+
+##### Memory Allocation:
+- malloc(size); // Allocates a block of memory
+- calloc(n, size); // Allocates an array of n elements, initialized to zero
+- free(pointer); // Deallocates the memory block
+
+- - -