1. Home
  2. Computing & Technology
  3. C / C++ / C#

Definition of Header File

By , About.com Guide

Definition: In C and C++, applications are divided into smaller parts through the use of header files.

Any function prototypes, and type definitions that can be exported from a source code file are put in a header file. From the point of view of the main application, these functions are external.

The compiler reads the included header file and knows where a particular function comes from. Without this it would just report an undefined function error.

When the application is linked, all calls to external functions are resolved.

Glossary:

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Examples:
Moving
Explore C / C++ / C#
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. C / C++ / C#
  4. Glossary
  5. Header File - Definition

©2009 About.com, a part of The New York Times Company.

All rights reserved.