O'Reilly logo

C Programming: Visual Quickstart Guide by Marc Liyanage, Larry Ullman

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 8. Using the C Preprocessor

As your applications grow in complexity, they become harder and more time consuming to manage, program, and edit. Furthermore, as you begin using modular coding methods, such as defining your own functions and working with multiple files, you need easier ways to manage and use all that code. This is where the C preprocessor—an essential tool developed to assist the C programmer—comes in.

This chapter begins by discussing the basic syntax for using the preprocessor and how it relates to C. We'll then show you a common, practical example for using the C preprocessor to define array sizes. You can also create pseudo-functions using the C preprocessor, and you'll learn how, both with and without arguments. Finally, ...

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