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

Definition of Constant

By David Bolton, About.com

Definition: A constant is a value of any type that has the same value and can never change.

In C #define is used to define a constant. C++ and C# have more programming features for constants, including specifying that parameters remain constant in a function.

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:
It is good programming practice to define values in programs as constants.
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. Constant - Definition

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

All rights reserved.