Home / General Knowledge / Testing New :: Discussion

Discussion :: Testing New

  1. Determine Output:

    void main()

    {

    static int i=i++, j=j++, k=k++;

    printf("%d %d %d", i, j, k);

    }

  2. A.

     1 1 1

    B.

     0 0 0

    C.

     garbage values

    D.

     Error

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    Since static variables are initialized to zero by default.


Be The First To Comment