I'm not really familiar with switch statements.
//S1
switch(ch) {
case 'a': printf("eh? "); break;
case 'e': printf("eee "); break;
case 'i': printf("eye "); break;
case 'o': printf("ohh "); break;
case 'u': printf("you "); break;
}
//S2
switch(ch) {
case 'a': printf("eh? ");
case 'e': printf("eee ");
case 'i': printf("eye ");
case 'o': printf("ohh ");
case 'u': printf("you ");
}
Is there a difference in outputs between these two chunks of code? And could you also please explain why?