Download Our Mobile App
If you don't want others (or yourself) to change existing variable values, you can use the const keyword.
This will declare the variable as "constant", which means unchangeable and read-only:
You should always declare the variable as constant when you have values that are unlikely to change:
When you declare a constant variable, it must be assigned with a value:
Another thing about constant variables, is that it is considered good practice to declare them with uppercase. It is not required, but useful for code readability and common for C programmers: