I am using this site to teach myself C++ and am doing very well. I am taking notes on everything that I read (hell I even write down the quizes and grade myself). One thing that I don't really understand is the following question:
What is the result of the folowing code:
The answer to the question is: ZeroHello WorldCode:x=0; switch(x) { case1: cout<<"One"; case0: cout<<"Zero"; case2: cout<<"Hello World"; }
I just don't understand how the program would come out with this out come. Can anyone help me understand?