Quiz · References and Pointers · lesson 6 of 8
Quiz — what is const here
Which line of this program does not compile?
int main() {
int a = 1;
int b = 2;
const int* p = &a;
int* const q = &b;
p = &b;
*p = 4;
*q = 3;
return a + *p;
}