A variable is a data name that can be used to store data values. Individual variables that remain unchanged during the execution of a program can take on different values at different times when a variable is executed. In the previous tutorial, we have used several variables.
A variable name can be chosen by the programmer in a meaningful way to reflect its method or nature in the program. Some examples of such names are :
As mentioned earlier, variable names may consist of letters, numbers, and underscores, subject to the following conditions:
|int||No||int is a keyword|
|price$||No||Dollar sign is not allowed|
|circle area||No||Blank space is not permitted|
|average_number||Yes||first eight character are significant|
|int_type||Yes||Keyword may be part of a name|