1.

What will be the output of the program?_x000D_ #include_x000D_ int main()_x000D_ {_x000D_ int i = 5;_x000D_ while(i-- >= 0)_x000D_ printf("%d,", i);_x000D_ i = 5;_x000D_ printf("\n");_x000D_ while(i-- >= 0)_x000D_ printf("%i,", i);_x000D_ while(i-- >= 0)_x000D_ printf("%d,", i);_x000D_ return 0;_x000D_ }

A. 4, 3, 2, 1, 0, -14, 3, 2, 1, 0, -1
B. 5, 4, 3, 2, 1, 05, 4, 3, 2, 1, 0
C. Error
D. 5, 4, 3, 2, 1, 05, 4, 3, 2, 1, 05, 4, 3, 2, 1, 0
Answer» B. 5, 4, 3, 2, 1, 05, 4, 3, 2, 1, 0


Discussion

No Comment Found