Exercise

Let's test your knowledge of constness with this exercise.

We'll cover the following

Problem statement:

The following code shows undefined behavior due to const variables that have been cast away. Remove the undefined behavior and make sure that m_a is immutable.

Get hands-on with 1400+ tech skills courses.