Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. What is the output of this C code?


        int main()

        {

            int a = 1, b = 1;

            switch (a)

            {

           case a*b:

                printf("yes ");

            case a-b:

                printf("no\n");

               break;

            }

        }

  2. A.
    yes
    B.
    no
    C.
    Compile time error
    D.
    yes no

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    none


Be The First To Comment