In computer programming, variable declaration specifies properties of a variable (such as its type).
In computer programming, variable declaration specifies properties of a variable:
- It associates a type and an identifier (or name) with the variable.
- It allows the compiler to decide how much storage space to allocate for storage of the value associated with the identifier and to assign an address for each variable which can be used in code generation.