Preprocessors Flashcards
The C Preprocessor is not a part of the compiler, but is a separate step in the compilation process
True
All preprocessor commands begin with what symbol?
#
A preprocessor command must be the first nonblank character.
True
define
Used for constants to increase readability
include
Includes a particular header from another file
undef
Undefines a preprocessor macro
ifdef
Returns true if this macro is defined
ifndef
Returns true if this macro is not defined
if
Tests if a compile time condition is true
else
The alternative for #if
elif
else and #if in one statement
endif
Ends processor conditional
error
Prints error message on stderr
pragma
Issues special commands to the compiler
__DATE__
The current date as a character literal in “MMM DD YYYY” format