Why does const matter?

Let’s learn why making const variables or parameters matters.

We'll cover the following...

Explanation

We’ll also encounter some developers who will be reluctant to declare variables, functions, parameters, etc. as const “because it doesn’t matter anyway.”

In his talk “Rich Code for Tiny Computers”, Jason Turner argued for the usage of const through an example.

The Example

In Jason Turner’s example, there is a static array of 16 colors, where each color is represented ...