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, ...
Get C Programming: Visual Quickstart Guide 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.