Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. What is the output of this C code?


       int main()

        {

            int x = 97;

            switch (x)

            {

            case 'a':

                printf("yes ");

                break;

            case 97:

                printf("no\n");

                break;

            }

        }

  2. A.
    yes
    B.
    yes no
    C.
    Duplicate case value error
    D.
    Character case value error

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    none


Be The First To Comment