Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. What is the output of this C code?

        int main()
        {
            int a = 10;
            if (a == a--)
                printf("TRUE 1\t");
            a = 10;
            if (a == --a)
                printf("TRUE 2\t");
        }
  2. A.
    TRUE 1
    B.
    TRUE 2
    C.
    TRUE 1  TRUE 2
    D.
    No output

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    None.


Be The First To Comment