You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- In most cases variable values can be changed int he program, however, there are cases where you do not want to allow for your variables to change value. This is where **constants** come into play. These special types prevent any changes during execution once the value is set at declaration
- Any basic data type in C, like those we have gone over, can be declared as a constant using the keyword *const* before the type. So instead of our template of type *variable_name*, it would be const type *variable_name*
- It is also best practice to use all upper case letters when declaring a constant: