Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Common name for variable and constant

In programming (and math) there are variables and constants. Is there a name to describe both of them? I was thinking value, but that's not it. A value is what variables/constants contain, not what they are.

like image 797
Bart van Heukelom Avatar asked Jul 08 '11 11:07

Bart van Heukelom


People also ask

What are constants and variables called?

A constant does not change over time and has a fixed value. For example, the size of a shoe or cloth or any apparel will not change at any point. In an algebraic expression, x+y = 8, 8 is a constant value, and it cannot be changed. Variables: Variables are the terms which can change or vary over time.

What are the two types of constant variable?

Overview. Variables having fixed values that don't change and cannot be changed throughout the execution of the program once initialized are called Constants. There are mainly two types of constants: primary and secondary.

What is constant and identifier?

In computer programming, a constant is a value that should not be altered by the program during normal execution, i.e., the value is constant. When associated with an identifier, a constant is said to be "named," although the terms "constant" and "named constant" are often used interchangeably.


1 Answers

I would call it a symbol. From google:

sym·bol/ˈsimbəl/Noun
1. A thing that represents or stands for something else, 
   esp. a material object representing something abstract.
...
like image 143
mpontillo Avatar answered Sep 25 '22 02:09

mpontillo