Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. What is the output of this C code?


        int main()

        {

            int x = 1;

            if (x > 0)

                printf("inside if\n");

            else if (x > 0)

                printf("inside elseif\n");

        }

  2. A.
    inside if
    B.
    inside elseif
    C.
    inside if

         inside elseif

    D.
    Compile time error

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    none


Be The First To Comment