warning?
Yes you are right. gcc -Wall indeed get the warning.
operation on 'a' may be undefined [-Wsequence-point]
Thanks for you reminder.
Let me know ,If we want the result we want ,we should do the precision
logic design .
> On Feb 21, 2012 3:19 PM, "嘉谟" wrote:
>&g
I do a experiments to check how gcc pass the arguments.
here is the code
#include
int main(int argc , char *argv[]){
int a=3;
int b=3;
int c=3;
printf("%d %d\n",++a+c,a+c);
printf("%d %d\n",++b,b);
return 0;
}
the anwer is
8 7
4 4
the piece of as