A
arnuld
int a = 1;
const int c = 2;
now Stroustrup declares pointers for "a" and "c":
const int* p1 = &c; // ok
const int* p2 = &a; // he says it is OK
i don't get it, "a" is not a constant and we are declaring a "pointer
to a constant" . what is this ?
after that, is this legal:
int* p3 = &a;
?
const int c = 2;
now Stroustrup declares pointers for "a" and "c":
const int* p1 = &c; // ok
const int* p2 = &a; // he says it is OK
i don't get it, "a" is not a constant and we are declaring a "pointer
to a constant" . what is this ?
after that, is this legal:
int* p3 = &a;
?