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++)

                printf("true\n");

            else if (x == 1)

                printf("false\n");

        }

  2. A.
    true
    B.
    false
    C.
    Compile time error
    D.
    Undefined behaviour

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    none


Be The First To Comment