Hey Guys just joined i have been using this site on and off for a few weeks now and am slowly workign through the c++ section but have come across a problem maybe i am reading it wrong or something but have been stuck for a few days.
Lesson 5: Switch case -> Test yourself -> question 4.
Code:
int x=0;
switch(x)
{
case 1: cout<<"One";
case 0: cout<<"Zero";
case 2: cout<<"Hello World";
}
A. One
B. Zero
C. Hello World
D. ZeroHello World
No matter how many times i re-read this section i keep getting B as the answer as int x =0 and so i read that as case 0 now i know this is a very basic question but help would be great THANKS.