My C++ Quiz

The ultimate place for testing what you have learned



Home | Start Quiz | List of questions  | Next Question | Login / Register

Question #20: Which of the following lines should NOT compile?
56% on 2378 times asked

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 } 

7 and 9
7
9
none
© 2007-2010, My C++ Quiz, All rights reserved.
Can you find a bug in the quiz? Can you think of a new question that would be cool to add to this site? Email us and we will take action:
email us
Other Quizes | Contributors