why these two versions of code don't give the same result?
[CODE=c]
int i = 0;
while(i < MAXSIZE)
{
printf("%s\t%d\ n", emp_arr[i].name, emp_arr[i].age);
i++;
}
//*************** ************and *************** ******
int i = 0;
while(i < MAXSIZE)
printf("%s\t%d\ n", emp_arr[i++].name, emp_arr[i++].age);
[/CODE]
ain't they equivalent?
[CODE=c]
int i = 0;
while(i < MAXSIZE)
{
printf("%s\t%d\ n", emp_arr[i].name, emp_arr[i].age);
i++;
}
//*************** ************and *************** ******
int i = 0;
while(i < MAXSIZE)
printf("%s\t%d\ n", emp_arr[i++].name, emp_arr[i++].age);
[/CODE]
ain't they equivalent?
Comment