O'Reilly logo

Just Enough C/C++ Programming by Guy W. Lecky-Thompson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 14. Pre-Processor Directives

You briefly encountered the idea behind a pre-processor directive before, in the very first chapters of this book. Essentially, a pre-processor directive is a piece of code that’s processed by the compiler before the actual compilation takes place. In other words, pre-processor directives allow you to give the compiler some direction before it does its work.

The aim of this chapter is to provide an overview of the various C pre-processor directives and their practical uses. It is possible that there are some advanced or esoteric uses that fall out of the scope of this book; however, this chapter covers most of the C pre-processor directives you’ll come in contact with.

You should be able to apply these techniques ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required