Constant and Variable use to store data but they have different properties also uses.
1: Constant: The Value that can not be changed called constant e.g. Birth Year, number of Minuts in a year, number of months etc.
Note: Constant are typically defined at the beginning of the program and have a specific data type.
1: Variable: The Value that can be changed called variable e.g. Age, Temprature, Salary etc.
Note: Variable are typically defined at the beginning of the program and have a specific data type.

0 Comments