1.

What will be the output of the program ?_x000D_ #include_x000D_ _x000D_ int main()_x000D_ {_x000D_ char *names[] = { "Suresh", "Siva", "Sona", "Baiju", "Ritu"};_x000D_ int i;_x000D_ char *t;_x000D_ t = names[3];_x000D_ names[3] = names[4];_x000D_ names[4] = t;_x000D_ for(i=0; i<=4; i++)_x000D_ printf("%s,", names[i]);_x000D_ return 0;_x000D_ }

A. Suresh, Siva, Sona, Baiju, Ritu
B. Suresh, Siva, Sona, Ritu, Baiju
C. Suresh, Siva, Baiju, Sona, Ritu
D. Suresh, Siva, Ritu, Sona, Baiju
Answer» C. Suresh, Siva, Baiju, Sona, Ritu


Discussion

No Comment Found