Send Close Add comments: (status displays here)
Got it!  This site uses cookies. You consent to this by clicking on "Got it!" or by continuing to use this website.nbsp; Note: This appears on each machine/browser from which this site is accessed.
C preprocessor introduction


1. C preprocessor introduction

2. Preprocessor
The C compiler also uses a preprocessor that processes the source program before the compiler gets access to the transformed program. The idea started in ALGOL 68 (a complex language) but became popular with C.

3. Directives
Some preprocessor directives, introduced by the hash character "#" include the following in C. C also has a macro expansion capability that makes providing meaningful error messages more difficult.

4. Common directive
A common directive at the top of most C programs is the following.
#include

The stdio stands for "standard input output" and contains routines, such as printf and scanf to do fundamental input and output. If the directive is not present, the C compiler will not know the meaning of printf or scanf and will issue detected error messages.

5. End of page

6. Multiple choice questions for this page