Download to read offline





The document discusses C preprocessors and macros. It explains that the preprocessor is executed before compilation and includes directives like #include to add header files. Macros allow small pieces of code to be given a name and replaced wherever that name is used. Simple macros perform text substitution without parameters. Parameterized macros can take parameters, similar to functions, and are illustrated with a macro to calculate the square of a number.
Intro to C preprocessors and directives. Includes #include for header files like <stdio.h>, <string.h>.
Definition of macros in C, including simple and parameterized macros for code substitution. Examples of calculating area and squares using macros.