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

Definition of Declare

By , About.com Guide

Definition: In most modern programming languages which are strongly typed, the compiler will not allow the use of a variable or function unless that function or variable has already been declared.

This lets the compiler check parameters or variable type and report type mismatches or undeclared variables.

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:
I forgot to declare the variable and the compiler found three errors.
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#
  4. Glossary
  5. Declare - Definition

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

All rights reserved.