Variable

Bookmark and Share
The concept of variables has been around since the dawn of mathematics and equations. In the most simple equation: x + 3 = 8, “x” is a variable, which can stand for any number in the world. Once computers were introduced, mathematics played an important role in the way they function and along with mathematics came the variable.

Table of contents :

Variables in programming

The variable and its counterpart – the constant, now play a huge part in computer programming. Since computer programming plays a fundamental role on the Internet, it is the area where we could all sense the importance of both variables and constants.

Variables empower developers to quickly create a variety of simple and complex programs that tell the computer to behave in a pre-defined manner. Each program contains a list of variables and a list of directions where the variables are used to represent changeable data. The directions provide instructions how the variables should be used by the computer. The greatest advantage of the variables is that they enable one and the same program to execute various sets of data.

In the light of the afore-stated, a variable refers to a symbol for a varying value, which is stored in the system's memory. Each variable has a name (variable name) and a data type, which indicates what type of value it represents. The represented data can contain both numerical (including integers and floating-point numbers) and non-numerical values, such as letters and the '_' symbol.

The process of specifying and modifying variables in a computer program is called variable manipulation. It is mainly used for generating dynamic content through HTML (Hyper Text Mark-up Language) and other widely used programming languages. Some languages have strict data type requirements.

Variables in programming languages