Abstract
You can think of the C preprocessor as a separate program that runs before the compiler, with its own simple, line-oriented grammar and syntax. In previous chapters, we introduced two preprocessor directives—the #define command for naming a constant and the #include command for including additional source files. This chapter discusses both of these directives in greater detail and also describes other preprocessor directives that have not been mentioned yet. Briefly, the preprocessor gives you the following capabilities:
-
Macro processing.
-
Inclusion of additional C source files.
-
“Conditional compilation,” which enables you to conditionally compile sections of C source contingent on the value of an arithmetic expression.
If language be not in accordance with the truth of things, affairs cannot be carried on to success.
Confucious, Analects
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsPreview
Unable to display preview. Download preview PDF.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 1996 Springer-Verlag New York, Inc.
About this chapter
Cite this chapter
Darnell, P.A., Margolis, P.E. (1996). The C Preprocessor. In: C A Software Engineering Approach. Springer, New York, NY. https://doi.org/10.1007/978-1-4612-4020-4_11
Download citation
DOI: https://doi.org/10.1007/978-1-4612-4020-4_11
Publisher Name: Springer, New York, NY
Print ISBN: 978-0-387-94675-7
Online ISBN: 978-1-4612-4020-4
eBook Packages: Springer Book Archive