My C++ Quiz

The ultimate place to learn C++!

Question #20: Which of the following lines should NOT compile?

1 int main()
2 {
3     int a = 2;
4 
5     int* b = &a;
6 
7     int const* c = b;
8 
9     b = c;
10 
11    return 0;
12 }