Welcome Guest | Sign in | Register
Switch-case - Discussion Page For Q.10647 | C Programming Questions and Answers | C Programming Free Online-Tests | LucentBlackBoard | LucentBlackBoard.com

Home > Java Programming > Switch-case > Questions and Answers

Q: What will be output when you will execute following c code?
01 #include
02 int main()
03 {
04 int check=2;
05 switch(check){
06 case 1: printf("D.W.Steyn");
07 case 2: printf(" M.G.Johnson");
08 case 3: printf(" Mohammad Asif");
09 default: printf(" M.Muralidaran");
10 }
11
12 return 0;
13
14 }
Choose all that apply:
A. M.G.Johnson B. M.Muralidaran
C. M.G.Johnson Mohammad Asif M.Muralidaran D. Compilation error
E. None of the above

Answer and Explanation

Answer:M.G.Johnson Mohammad Asif M.Muralidaran

Explanation:
There is no explanation...

Comment on this Question

Name:

Loading...




Partner Sites
LucentBlackBoard.com                  SoftLucent.com                  LucentJobs.com
All rights reserved © 2012-2015 SoftLucent.