Originally posted by Arun Prasath AV: 20: int i=0; 21: int j=i++; 22; System.out.println(j); // prints 1;
I feel ok with this code... --------------------- In the following snippets,..
10: int i=0; 11: i=i++; 12; System.out.println(i); // prints 0;
what is happening to the post increment operation..?tell me in detail..
Although this doesn't seems to be an Advanced topic.. You should take care while posting your questions in the right forum. Asking a begineer's question in advance forum doesn't help you to get early reply. So next time please take care..
Although the same discussion has been done earlier..
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus