Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. 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;

            }

        }

  2. A.
    Do
    B.
    DoFirst
    C.
    DoSecond
    D.
    DoDefault

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    none


Be The First To Comment