What is the output printed by the following C code?
# 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);
}
w | o | r | l | d | \0 |
a[0] | 1 | 2 | 3 | 4 | 5 |