Mutability
Mutability
const variables are traditionally upper snake case LIKE_THIS
To declare something as const is to make it immutable and unable to be reassigned to a new value.
const int CENTIMETERS_PER_INCH = 3; // will forever be 3
const variables are traditionally upper snake case LIKE_THIS
To declare something as const is to make it immutable and unable to be reassigned to a new value.
const int CENTIMETERS_PER_INCH = 3; // will forever be 3