Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. What is the output of this C code?

        int main()
        {
            int x = -2;
            if (!0 == 1)
                printf("yes\n");
            else
                printf("no\n");
        }
  2. A.
    Yes
    B.
    No
    C.
    Run time error
    D.
    Undefined

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    None.


Be The First To Comment