Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. The output of the code below is

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

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    None.


Be The First To Comment