run code below, look at i,j int i; int j; i=254; j=255; while(1) { i=i++; j=j++; }
"I totally agree the statement like i=i++ is meaningless or something" Please go and read the other thread - it's all been discussed before! In particular, see: http://www.eskimo.com/~scs/C-faq/q3.3.html And understand the meaning of Undefined behaviour: http://www.eskimo.com/~scs/C-faq/q11.33.html "I test this code in Micorsoft C++ 6.0, Its behaviour is regular." Nonsense - see above!