Or my understand of keyword "volatile" is wrong, following code outputs compiled by gcc 4.1.1: x=22 ,y=59 main() { volatile int x=20,y=35; x=y++ + x++; y= ++y + ++x; printf("x=%d y=%d\n" ,x,y); } thanks Honggang
Or my understand of keyword "volatile" is wrong, following code outputs compiled by gcc 4.1.1: x=22 ,y=59 main() { volatile int x=20,y=35; x=y++ + x++; y= ++y + ++x; printf("x=%d y=%d\n" ,x,y); } thanks Honggang