Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. Comment on the output of this C code?

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

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    None.


Be The First To Comment