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

Definition of Directive

By David Bolton, About.com

Definition: A directive is an instruction by the programmer for a compiler. Most programming languages have directives.

In C, #include is used to include header files. C# also includes directives to help with code editing such as #region.

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
Also Known As: pragma, compiler directive
Examples:
In C and C++, almost every source code file has a #include.
Explore C / C++ / C#
About.com Special Features

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

Easy ways to connect two computers for networking purposes. More >

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

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

All rights reserved.