This lesson's interactive features are locked, please to keep using them
So a variable's value can change:
int main() {
int x = 5;
x = 10; // this is ok
}
But what if we want to create a value that can't change? We can use the const type qualifier.
int main() {
const int x = 5;
x = 10; // error
}