Variable | Constant |
Data Type | Declaration |
Assignment | Scope |
Global Variable | Local Variable |
A value that remains unaltered throughout the execution of a program. | A named storage location in a computer's memory that can hold a value |
Defining a variables name and type. | Classification that specifies which type of value a variable can hold in a programming language. |
The limit of accessibility and visibility of a variable | The process of providing a variable with a specific value. |
A variable that can only be accessed within a specific function. | A variable that can be accessed and modified from any part of a program. |
Type Inference | |
Automatic variables in programming languages can ascertain their data type by analyzing their value. | |