
26 May
2011
26 May
'11
9:14 p.m.
Right. Quite simple. But I saw this question on a forum and the guy just could not get it. Makes you wonder.... On Thu, May 26, 2011 at 9:08 PM, Haggai Nyang <haggai.nyang@gmail.com>wrote:
Easy. It's because you assign n to itself before you increment it. The expected way would be simply
n++;
instead of
n = n++;
To give you the output of
1 2 3 4 5
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- Regards Brian Ngure