My C++ Quiz

The ultimate place for testing what you have learned



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

Question #19: Which of the following lines should NOT compile?
64% on 2267 times asked

1 
2 int main()
3 {
4     int a[54] = {};
5 
6     int b[54] = {};
7 
8     int* x = a;
9 
10    int* const y = a;
11 
12    b = x;
13 
14    b = y;
15 
16    return 0;
17 } 

8, 10, 12, 14
8, 12
12, 14
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