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("true\n");

                else

                    printf("false\n");

        }

  2. A.
    true
    B.
    false
    C.
    Depends on the compiler
    D.
    No print statement

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    none


Be The First To Comment