Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. What is the output of this C code?

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

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    None.


Be The First To Comment