(Next Up: DLL Programming)
The C Preprocessor (CPP) is a separate program invoked by the compiler during the first stage of translation. It translates the directives into usable computer code and integrates macros into your code. It is actually pretty cool! You know what you #include a code file? The CPP reads in the file and places the code in the location of your #include statement.
There is a lot of information that you can learn about this amazing feature of C. We will go over some high level topics. Realistically, we could have an entire course on C Macros and directives, but we’re not gonna. Sorry!
Now let’s take a look at some common Preprocessor Directives such as external imports, decision statements, and basic macros!