Friday 8 February 2013

31

Which of the following lines should NOT compile? [explain]

1 int main()
2 {
3 int a = 2;

5 int* b = &a;

7 int const* c = b;
8
9 b = c;
10
11 return 0;
12 }
Join me on Facebook