Home | Projects | Notes > C Programming > Preprocessor Directives

Preprocessor Directives

 

Introduction to Preprocessor Directives

 

Macros (#define)

Usage of Macros in an Embedded Program

Conditional Compilation Using Preprocessor Directives

#if and #endif Directives

#ifdef and #ifndef Directives

#ifdef and #else Directives

#if Directive and defined Operator

#error Directiv

 

References

Nayak, K. (2022). Microcontroller Embedded C Programming: Absolute Beginners [Video file]. Retrieved from https://www.udemy.com/course/microcontroller-embedded-c-programming/