Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. What is the output of this C code?

        void main()
        {
            int a = 5, b = -7, c = 0, d;
            d = ++a && ++b || ++c;
            printf("\n%d%d%d%d", a, b, c, d);
        }
  2. A.
    6  -6  0  0
    B.
    6  -5  0  1
    C.
    -6  -6  0  1
    D.
    6  -6  0  1

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    None.


Be The First To Comment