Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. What is the output of this C code?

        int main()
        {
            int x = 1, y = 0, z = 3;
            x > y ? printf("%d", z) : return z;
        }
  2. A.
    3
    B.
    1
    C.
    Compile time error
    D.
    Run time error

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    None.


Be The First To Comment