O'Reilly logo

Programming in C: A Practical Approach, First Edition by Ajay Mittal

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

8

The C Preprocessor

Learning Objectives

In this chapter, you will learn about:

  • Translators and their classification

  • Phases of translation

  • Trigraph replacement, line splicing and tokenization

  • Macros and its types

  • Token replacement and token pasting

  • Predefined macros

  • Source file inclusion and line control directive

  • error directive

  • pragma directive

  • Null directive

8.1 Introduction

In the previous chapters, you have developed several programs using C language, which is a high-level language. However, you will be surprised to know that the computer (i.e. the machine) cannot understand high-level languages. It can only understand machine-level languages, which are in the form of 1’s and 0’s. Humans do not want to write programs in machine-level ...

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