What I think putting const before int does (c++)

I think const makes the int not a variable.

1 Like

Const make it so the variable stays consistent to what you assigned it to.

const int age = 24 will only ever be 24

oh ok :slight_smile:

Privacy & Terms