Tuesday 26 January 2010

Switch case questions in c









C programming switch case questions and answers with
explanation 

1.

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:

No comments:

Post a Comment