Chapter
Preprocessor Directives
From ComputerScienceOne by Dr Chris Bourke
Concepts
- What are preprocessor directives and why are standard libraries included?
"The lines,\n\n1 #include <stdlib.h>\n\n2 #include <stdio.h>\n\nare preprocessor directives. Preprocessor directives are instructions to the compiler to modify the source code before it starts to comp
- How do you use the C standard mathematics library?
"There are many other important standard libraries that we’ll touch on as needed; of immediate interest is the standard mathematics library, math.h. It includes many useful functions to compute common
- What are macros in C?
"Another preprocessor directive establishes macros using the #define keyword. A macro is a single instruction that specifies a more complex set of instructions. The macro can be used to define constan