Skip to Content
Absolute Beginner's Guide to Programming, Third Edition
book

Absolute Beginner's Guide to Programming, Third Edition

by Greg Perry
November 2002
Beginner content levelBeginner
432 pages
11h 44m
English
Que
Content preview from Absolute Beginner's Guide to Programming, Third Edition

Using the #include Statement

Surprisingly, you'll never see #include in a list of C commands because #include is not a C command. Statements in a C program that begin with the pound sign are called preprocessor directives. The compiler analyzes the directive and, instead of compiling the statement, acts upon the statement immediately during compilation.

The #include preprocessor directive tells the compiler to insert another file that resides in source code form at the location in the program where the directive resides. Therefore, before the program is actually compiled, more code is inserted at the programmer's request at the place where #include occurs. That code is compiled along with the programmer's code.

The stdio.h file is a source code ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Absolute Beginner's Guide to Programming, Second Edition

Absolute Beginner's Guide to Programming, Second Edition

Greg Perry

Publisher Resources

ISBN: 0789729059Purchase book