Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. What is the output of this C code?

        void main()
        {
            int x = 0;
            if (x = 0)
                printf("Its zero\n");
            else
                printf("Its not zero\n");
        }

  2. A.
    Its not zero
    B.
    Its zero
    C.
    Run time error
    D.
    None

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    None.


Be The First To Comment