© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2024
S. DmitrovićModern C for Absolute Beginnershttps://doi.org/10.1007/979-8-8688-0224-9_23

23. Preprocessor

Slobodan Dmitrović1  
(1)
Belgrade, Serbia
 
When we compile our program, many things are happening in sequence, and here, we will take a look at the three major steps:
  • Preprocessing

  • Compilation

  • Linking

The preprocessing is a process in which the preprocessor modifies the content of our source file(s) in various ways. The compiler then compiles the source code and turns it into object files. The linker then links the object files together and produces an executable file or a library.

When we start the compilation process, a preprocessor tool modifies our file’s ...

Get Modern C for Absolute Beginners: A Friendly Introduction to the C Programming Language 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.