Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. What is the output of this C code?

    void main()
    {
    int k = 8;
    int m = 7;
    int z = k < m ? k++ : m++;
    printf("%d", z);
    }
  2. A.
    7
    B.
    8
    C.
    Run time error
    D.
    None of the mentioned.

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    None.


Be The First To Comment