Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. What is the output of this C code?

        int main()
        {
            int a = 10, b = 10;
            if (a = 5)
            b--;
            printf("%d, %d", a, b--);
        }

  2. A.
    a = 10, b = 9
    B.
    a = 10, b = 8
    C.
    a = 5, b = 9
    D.
    a = 5, b = 8

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    None.


Be The First To Comment