0
Constant
how we can change the value of constant.? const int x=10; x++; cout<<x;
3 Respostas
+ 4
you can't change the value of const variables.
but you can change memory address like...
const int a = 1;
const int *p = &a;
cout << ++p;
+ 6
You can't, that's the whole idea of constant.
+ 6
You can't change the value of a constant. The point of a constant is that it cannot be changed. You can change the value of a variable, though.