Home / General Knowledge / Testing New :: Discussion

Discussion :: Testing New

  1. Determine Output:

    void main()

    {

    int i = abc(10);

    printf("%d", --i);

    }

    int abc(int i)

    {

    return(i++);

    }

  2. A.

     10

    B.

     9

    C.

     11

    D.

     None of These

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    "return(i++)", it will first return i and then increment it. i.e. 10 will be returned.


Be The First To Comment