C-Code Compilation
June 28th, 2023
Do you think that the following C code will compile? Why or why not? What will be printed by it?
char c;
c = ‘1’;
switch (c)
{
case 1 : printf(“It is 1n”);
break;
case 2 : printf(“It is 2n”);
break;
case 49: printf(“It is 49n”);
}