Meaning of const int

I assume the const makes it so the integer value is unchangeable.

1 Like

That’s correct. In the context of a variable, const fixes the value of the variable so it cannot be changed.

Privacy & Terms