Possible Duplicate:
post and pre increment in c
Undefined Behavior and Sequence Points
here i want to know why this output comes?? Any one Can Explain me All in proper manner
#include<stdio.h>
int main() {
int a=5;
printf("%d %d %d",a++,a++,++a);
return 0;
}
the output of this program is like
In LINUX 7 6 8