The C Preprocessor and #define Directives
Learn about the C preprocessor and how it processes the #define directive.
We'll cover the following
The C prepocessor
The C preprocessor is a part of the C compilation process that recognizes special instructions called directives, analyses them before compilation, and acts on them as required.
The preprocessor can be used to make programs more efficient, more readable, and more portable to multiple systems.
The #define
directive
We can use #define
directive to assign symbolic names to program constants. For example:
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy