B
Bo Sun
hi:
please take a look at the following code:
int a[3] = {1, 3, 2};
int b[3] = {7, 9, 10};
int i;
i = 0;
a[i++] = b[i++];
for (i = 0; i < 3; i ++)
printf("a[%d]: %d, b[%d]: %d\n", i, a, i, b);
what is the output?
I run it under two different platform, linux and irix, and get two
different output. Can someone tell me why?
many thanks,
bo
please take a look at the following code:
int a[3] = {1, 3, 2};
int b[3] = {7, 9, 10};
int i;
i = 0;
a[i++] = b[i++];
for (i = 0; i < 3; i ++)
printf("a[%d]: %d, b[%d]: %d\n", i, a, i, b);
what is the output?
I run it under two different platform, linux and irix, and get two
different output. Can someone tell me why?
many thanks,
bo