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

    int main()

    {

        switch (printf("Do"))

        {

        case 1:

            printf("First\n");

            break;

        case 2:

            printf("Second\n");

            break;

        default:

            printf("Default\n");

            break;

        }

    }

Options:
A .  Do
B .  DoFirst
C .  DoSecond
D .  DoDefault
Answer: Option C


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