Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. What is the output of this C code?


        int main()

        {

            int x = 0;

            if (x == 1)

                if (x == 0)

                    printf("inside if\n");

                else

                    printf("inside else if\n");

            else

                printf("inside else\n");

        }

  2. A.
    inside if
    B.
    inside else if
    C.
    inside else
    D.
    Compile time error

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    none


Be The First To Comment