Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Role of the Preprocessor | Introduction to Preprocessing
C Preprocessing
course content

Kursusindhold

C Preprocessing

C Preprocessing

1. Introduction to Preprocessing
2. Macros
3. Conditional compilation

book
Role of the Preprocessor

To take advantage of the capabilities of preprocessing, the C language uses special instructions - directives.

Each directive begins with a symbolic hash #. You have already encountered preprocessor directives when connecting the built-in standard input/output library (stdio.h).

Preprocessor directives allow you to include files, define constants, and conditionally compile parts of the code. They are essential for organizing and optimizing the compilation process.

question mark

What symbol is used for preprocessor directive?

Select the correct answer

Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 1. Kapitel 2
Vi beklager, at noget gik galt. Hvad skete der?
some-alt