Fun (a++,a++,a++); is compiler dependent we are doing incement of a more than 1 time in same line so is right most a++ done 1st then answer is different , if leftmost a++ done 1st then answer is different . So answer varry from compiler to compiler . This probelm is known as sequence points