What will be the output of the following program on GCC?
Practice Control Instructions –
What will be the output of the following program on GCC?
#include <stdio.h>
int main(){
int i;
printf("Enter a number");
scanf("%d",&i); // 1
switch(i){
case 1:
printf("Do
");
case 2:
printf("Re
");
case 3:
printf("Me
");
case default:
printf("Fa So La Ti Do
");
}
return 0;
}