I'm learning C and running into this problem with array that I try to understand. When I try the following code to print an array of 5 interger:
for(i = 0; i<5; i++)
printf("%.1lf %.1lf %.1lf \n", source[i], target1[i], *target2++);
I get the error "lvalue required as increment operand" for using *target2++. However, if it use: *(target2+i), then i'm fine. Can someone explain to me why I can't use increment to print like that?
Thanks alot in advance.