Programming Languages C Objective
Mar 07, 2013

 What will be output when you will execute following c code?#include

void main(){

     int check=2;

     switch(check){

        case 1: printf("D.W.Steyn");

        case 2: printf(" M.G.Johnson");

        case 3: printf(" Mohammad Asif");

        default: printf(" M.Muralidaran");

     }

}

Choose the correct answer:
A) M.G.Johnson
B) M.Muralidaran
C) Compilation error
D) M.G.Johnson Mohammad Asif M.Muralidaran
Detailed Explanation

No Explanation

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback