What is the output of C Program with switch statement or block.?
int main()
{
    char code='A';
    
    switch(code)
    {
        case 64+1: printf("ANT ");break;
        case 8*8+4: printf("KING "); break;
        default: printf("NOKING");
    }
    
    printf("PALACE");
}
A) ANT KING PALACE
B) KING PALACE
C) ANT PALACE
D) Compiler error for using expressions

Posted on by