Variable meaning

vârē-ə-bəl, văr-
Frequency:
(mathematics) Having no fixed quantitative value.
adjective
10
4
A structure that holds data within an executable program. Mostly created by and uniquely named by the programmer, variables may store predefined data at the start of the program or be empty containers until a value is placed in them. The values may remain constant or be updated in RAM as the program runs. Variables are used as counters to sum totals and do math as well as to keep track of processes that are repeated within the program. There may be dozens or hundreds of variables defined in a single application.Using C/C++ as the example language, the statement int counter; defines an integer variable for whole numbers named COUNTER. The statement counter=1; stores a 1 in COUNTER, and counter++; adds 1 to COUNTER. A "char" variable holds character data. A single character variable requires single quotes, but a "string" of characters uses double quotes; for example, mode='A'; and product="abc"; places A in the variable MODE and ABC in PRODUCT. See string, integer and RAM.Variables Are Control ValuesVariables are widely used to repeat a process. In the following for statement, the function DO-SOMETHING is performed five times. At first, x is set to 0. All statements between the left and right curly braces ({ }) are performed. Then, x is incremented by 1 until x is no longer less than 5.for (x=0; x<5; x++) { do-something(); }Local and Global VariablesA local variable is one that is referenced only within the subprogram, function or procedure it was defined in. A global variable can be used by the entire program. See environment variable, undefined variable and local variable.Actual Variable ExamplesThe following integer variables and character strings were extracted from a program written in C that converts an XML encyclopedia feed to an HTML feed. The =NO is the same as inserting a 0. Variables are often used to keep track of internal modes that are turned on and off while the program is running. YES and NO are the same as 1 and 0 to the compiler.int ForceOne=NO, ForceAll=NO, NoMoreFiles=NO;int XMLfileNewer=NO, EndFile=NO;int TermsWith1Link=0, TermsWith2Links=0;int TermsWith3Links=0, TermsWithNoLinks=0;int AFTermCount=0;int AF_results=0;int AF_EOF=0;int hFileAF;int ARTICLES=0;char AFbuff[2000];char *AFptr;char HREF1buff[500];char HREF2buff[500];char HREF3buff[500];
4
5
(math.) Having no fixed value.
adjective
3
1
(astronomy) A variable star.
noun
3
5
A mathematical quantity capable of assuming any of a set of values, such as x in the expression 3 x + 2.
2
1
Advertisement
Anything changeable; esp., a quality or quantity that varies or may vary.
noun
1
1
noun
1
1
(biology) Tending to exhibit genetic variation or variation in a physical trait.

Geographically variable color patterns.

adjective
1
1
(biology) Tending to exhibit genetic variation or variation in a physical trait.

Geographically variable color patterns.

adjective
1
2
Apt or likely to change or vary; changeable, inconstant, fickle, fluctuating, etc.
adjective
1
2
Advertisement
That can be changed or varied.
adjective
1
2
Designating or involving an interest rate, as on a mortgage loan, that varies over time according to some predetermined formula.
adjective
1
2
(biol.) Tending to deviate in some way from the type; aberrant.
adjective
1
2
Something that varies or is prone to variation.
noun
1
4
Variable is defined as something inconsistent or able to change.

When you have an adjustable rate mortgage and the interest rate can go up or down, this is an example of a variable rate mortgage.

When the food at a restaurant is sometimes good and sometimes bad, this is an example of a restaurant with variable quality.

adjective
0
0
Advertisement
The definition of a variable is something that can change, or is a quantity in an equation that can change its value.

If you are planning an outdoor event and weather is a consideration but you aren't certain what the weather is going to be, then the weather is an example of a variable in your planning.

In the equation 2x+3 > 0, x is an example of a variable.

noun
0
0
Able to vary.

Variable winds or seasons; a variable quantity.

adjective
0
0
Likely to vary.
adjective
0
0
Marked by diversity or difference.
adjective
0
0
(mathematics) Having no fixed quantitative value.
adjective
0
0
Advertisement
(biology) Tending to deviate from a normal or recognized type.
adjective
0
0
Something that is variable.
noun
0
0
Something whose value may be dictated or discovered.

There are several variables to consider here.

noun
0
0
(mathematics) A quantity that may assume any one of a set of values.
noun
0
0
(mathematics) A symbol representing a variable.
noun
0
0
Advertisement
(programming) A named memory location in which a program can store intermediate results and from which it can read them.
noun
0
0
(astronomy) A variable star.
noun
0
0
(mathematics) Having no fixed quantitative value.
adjective
0
1
Something that varies or is prone to variation.
noun
0
1
A factor or condition that is subject to change, especially one that is allowed to change in a scientific experiment to test a hypothesis.
0
1
Advertisement

Origin of variable

  • From Old French variable, from Latin variare (“to change”), from varius (“different, various”).

    From Wiktionary