srdusr
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsrdusr <[email protected]>2023-06-26 16:12:17 +0200
committersrdusr <[email protected]>2023-06-26 16:12:17 +0200
commitc79ab3eda7821a9fe1a0bf39f5d7244daad12b1e (patch)
tree4537ea1e846a8ded676f03d7165b2cb29f422a77
parent7091a74b9ee3d530659c5ce0ba24b1d96518a43f (diff)
downloadnotes-c79ab3eda7821a9fe1a0bf39f5d7244daad12b1e.tar.gz
notes-c79ab3eda7821a9fe1a0bf39f5d7244daad12b1e.zip
Add Preprocessor Directives
-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
- - -