Sail E0 Webinar
Question
What is the output of this C code?

    const int a = 1,  b = 2;

    int main()

    {

        int x = 1;

        switch (x)

        {

        case a:

            printf("yes ");

        case b:

            printf("no\n");

            break;

        }

    }

Options:
A .  yes no
B .  yes
C .  no
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