undefined behaviour. since value of i is changing more than once between two sequence points..
On Fri, Jul 22, 2011 at 5:42 PM, suresh srinivasan <suree...@gmail.com>wrote: > > Output: > 5,4,3,1 > > *Explanation:* > > Since the brackets acts as right precedence, the execution of the statement > is from right to left. The comma separates the individual. > For i++, it prints the current 'i' value and increments it by 1. > For ++i, it increments the value by 1 and prints the updated value of 'i'. > -- > Regards, > Suresh.S > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algogeeks@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- Regards, Kamakshi kamakshi...@gmail.com -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.