Constant

  • Authors:
  • Seymour V. Pollack;Ron K. Cytron

  • Affiliations:
  • -;-

  • Venue:
  • Encyclopedia of Computer Science
  • Year:
  • 2003

Quantified Score

Hi-index 0.00

Visualization

Abstract

A constant is a value that remains unchanged during a computation. Various types of constants are discussed in this article--numerical, character, logical, location, and figurative (symbolic) constants. While, in an imperative language, the reference to an item of information is usually given in terms of its location or address, it is more convenient to refer to constants by their values, since these are intrinsically meaningful in an algorithm. Consequently, high-level languages allow the inclusion of actual values, specified directly in the program, rather than being read in.