Sail E0 Webinar
Question
Comment on the output of this C code?

    int main()

    {

        int a = 1;

       switch (a)

        {

       case a:

            printf("Case A ");

        default:

            printf("Default");

        }

    }

Options:
A .  Output: Case A
B .  Output: Default
C .  Output: Case A Default
D .  Compile time error
Answer: Option D


none



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

More Questions on This Topic :


Latest Videos

Latest Test Papers