srdusr
aboutsummaryrefslogtreecommitdiffstats
path: root/languages/c.md
diff options
context:
space:
mode:
Diffstat (limited to 'languages/c.md')
-rw-r--r--languages/c.md14
1 files changed, 10 insertions, 4 deletions
diff --git a/languages/c.md b/languages/c.md
index e80652b..a7c4795 100644
--- a/languages/c.md
+++ b/languages/c.md
@@ -183,9 +183,15 @@ int value = *pointerName;`
- - -
-##### 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
+##### 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
+
+- - -
+
+##### Preprocessor Directives:
+- #include <header_file> // Includes a header file
+- #define <macro_name> <value> // Defines a macro
- - -