What is the output printed by the following C code? C # include <stdio.h> int…
GATE · 2008 · IT
What is the output printed by the following C code?
C
# include <stdio.h>
int main ()
{
char a [6] = "world";
int i, j;
for (i = 0, j = 5; i < j; a [i++] = a [j--]);
printf ("%s\n", a);
}- A.
dlrow
- B.
Null String
- C.
dlrld
- D.
worow
Attempted by 189 students.
Sign up free to check your answer
Sign up freeLoading lesson…