Determine Output:
void main()
      static int i=i++, j=j++,  k=k++;
      printf("%d %d %d", i, j, k);

A. 1 1 1

B. 0 0 0

C. garbage values

D. Error

Answer: Option A

Solution(By Examveda Team)

Since static variables are initialized to zero by default.

Join The Discussion

Related Questions on C Miscellaneous