Variable is anything which is not consistent.

In computer science, a variable is a block of memory where numbers or characters can be stored. Typically, the programmer gives this block a name and the program decides where this block will reside in memory, after the execution of the code.

                                                    WHAT IS A VARIABLE?

Variables are used to store information, there are several types of variables, and some are exclusive for a certain language. Some of the types are integer variables, character variables, and float variables.



Different types of variables:-

Integers − are whole numbers, without a decimal point, like 4195.

Doubles − are floating-point numbers, like 3.14159 or 49.1.

Booleans − have only two possible values either true or false.

NULL − is a special type that only has one value: NULL.

Strings − are sequences of characters

Arrays − are named and indexed collections of other values.

Objects − are instances of programmer-defined classes, which can package up both other kinds of values and functions that are specific to the class.


  Modified On Mar-20-2018 05:42:13 AM

Leave Comment