We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86ee74a commit a31e7afCopy full SHA for a31e7af
LearningC/C_Language_Shorts/C_syntax.md
@@ -113,3 +113,19 @@ When you want to create a function you put the prototype at the beginning of the
113
## Loop
114
115
## Preprocessor Directives
116
+They start with a hash **#** and should be declared at the top of the file.
117
+> [!NOTE]
118
+> Commonly we use:
119
+> ```
120
+> #include <header-file>
121
+> #define UPPERCASE_NAME <substitution> //Macro definition
122
123
+>
124
+
125
+> [!TIP]
126
+> A classical example of Macro definition
127
+> `#define MAX(A,B) ((A)>(B)?(A):(B))` \
128
+> in brackets for the case where A or B is am expresion which has to be evaluated first
129
130
+> For `#include` [headers](C_Files.md#header)
131
0 commit comments