Home / C Programming / Functions :: Discussion

Discussion :: Functions

  1. Determine output:

    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. i.e. 10 will be returned.


Be The First To Comment