1switch(foo) {
2case1:
3int i = 42; // i exists all the way to the end of the switch4dostuff(i);
5break;
6case2:
7dostuff(i*2); // i is *also* in scope here, but is not initialized!8}
you will get a confirmation link on this - you will have to click that for successful submission of your answer. we require this to keep the website free of spam, bots and unhelpful content
please ensure to add code which is syntactically corrent and executes properly
you will get a confirmation link on this - you will have to click that for successful submission of your question. we require this to keep the website free of spam, bots and unhelpful content