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

Variable: Difference between revisions

From Coderwiki
Variable: create
 
(No difference)

Latest revision as of 22:33, 8 August 2025

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.