My C++ Quiz

The ultimate place for testing what you have learned



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

Question #10: From line 6 in the code below which labels can you access using a goto statement?
57% on 3599 times asked

1
2
3  void foo(int x)
4  {
5  pointa:
6     
7  pointb:
8         
9  pointc:
10 }   
11     
12 int main(int argc, char** argv)
13 {   
14     foo(5);
15     
16 pointd:
17 
18     return 0;
19 }

a, b, c, d
a, b, c
b, c
b, c, d
© 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