Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

A variable is an area of memory which stores a value.

This value generally has a data type, and if we assign another value to this variable, it must be of the same type. We must also initialize this variable with data of the appropriate type.

Variables have an identifier - a unique name that is used to reference them. This identifier must follow certain rules which are dependent on the programming language you are using.