What will be the output of the following program on GCC?

		
					

Loading

โœช Choose the correct option.

What will be the output of the following program on GCC?

#include 
int main(){
int k=-2,j=4;
switch(k/=j/k){
default:
printf("default case ");
case 0:
printf("zero ");
case 1:
printf("first ");
case 2:
printf("second ");
}
return 0;
}

A. default case
zero
first
second
B. first
C. first
second
D. default case

Leave a Comment