Docsity

Lecture 23: Preprocessors and Header Files in C Programming, Slides of Computer Programming

Partial preview of the text

Download Lecture 23: Preprocessors and Header Files in C Programming and more Slides Computer Programming in PDF only on Docsity!

Introduction to Programming

Lecture 23

Preprocessors and

Header files

Today’s Lecture

 Preprocessor Directives

 Header Files

 Macros

**#include **

MyHeader.h

#include “MyHeader.h”

#define

Preprocessor Directives

 #if

 #else

 #endif

 #elif

 #ifdef

 #ifndef

 #error

Preprocessor Directives

 #ident

 #import

 #line

 #machine

 #system

 #warning

**# define PI

ifdef PI**

**# define DEBUG

ifdef DEBUG**