Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2
The difference between variables and constants is that variables can change their value at any time but constantscan never change their value. (The constants value is lockedfor the duration of the program). Constantscan be very useful, Pi for instance is a good example to declare as a constant.
26th Nov 2016, 3:31 PM
Abdelaziz Abubaker
Abdelaziz Abubaker - avatar