7. Making Your Programs More Powerful with #include and #define

Two types of lines you see in many C programs are not C commands at all. They are preprocessor directives. A preprocessor directive always begins with a pound sign (#). Preprocessor directives don’t cause anything to happen at runtime (when you run your program). Instead, they work during the compiling of your program.

These preprocessor directives are used most often:

#include

#define

Every sample program you have written so far has used #include. This chapter finally takes the secret out of that mysterious preprocessor directive.

Including Files

#include ...

Get C Programming Absolute Beginner’s Guide, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.