This course will teach you the role of C Preprocessor in the C programming language. You'll learn how C Preprocessor plays a role during the compilation process of a C program and how you can use various preprocessor directives practically.
When it comes to learning a programming language, the focus is often on the different programming elements and syntax rules of a programming language. While it is important to learn these aspects, you shouldn’t be missing the most important piece that is responsible for performing all the background activities in order to translate your program written in a high-level language to a language that your machine is able to understand. In this course, Using a C Preprocessor (CPP), you’ll learn to use C preprocessor directives in your C program. First, you’ll explore various phases of the compilation process of a C program and what role does the C preprocessor play in that. Next, you’ll discover various preprocessor directives defined in the C library as well as those which are defined specific to different compiler flavors. Finally, you’ll learn how to use these preprocessor directives effectively in your C programs and applications. When you’re finished with this course, you’ll have the skills and knowledge of using the C preprocessor needed to understand the preprocessing phase during the compilation process and to use the features and power rendered by the preprocessor directives in your real time applications.
Course Overview Hi, my name is Jaya Bodkhey, and welcome to my course Using C Preprocessor. I am an information security and automation engineer. When it comes to learning a programming language, we often focus more on the different programming elements and syntax rules of a programming language. While it is important to learn these aspects, we should not be missing the most important piece that is responsible for performing all the background activities in order to translate your program written in a high‑level language to a language that your machine is able to understand. In C programming language, this task is carried out by the C preprocessor. Preprocessing is the first stage during the compilation of a C program. The C preprocessor offers a set of preprocessor directives to provide necessary instructions during the preprocessing phase. In this course, we are going to learn various aspects of the C preprocessor like compilation processes of a C program, translation phases of a C program, C preprocessor directives, macros, and compiler‑specific preprocessor directives. By the end of this course, you will know the role of the C preprocessor in generating an executable for a C program, and the preprocessing elements it provides to make your C programming more effective and convenient. You will also learn how to use all the preprocessing elements in your practical C programming. Before beginning the course, I would recommend you to be familiar with basics of C programming elements like variables, data types, and functions. I hope you will join me on this journey to learn all these interesting artifacts of the C preprocessor with this course, Using C Preprocessor, at Pluralsight.