From c79ab3eda7821a9fe1a0bf39f5d7244daad12b1e Mon Sep 17 00:00:00 2001 From: srdusr Date: Mon, 26 Jun 2023 16:12:17 +0200 Subject: Add Preprocessor Directives --- languages/c.md | 14 ++++++++++---- 1 file 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 // Includes a header file +- #define // Defines a macro - - - -- cgit v1.2.3