order of evaluation for such expressions is not defined in standard c.it is compiler dependent./ is not sequence point !!!!
On Sat, Sep 3, 2011 at 11:05 PM, vivek goel <vivek.thapar2...@gmail.com>wrote: > firstly ++i will be evaluated so i=6 > then expression will be > i=6/6; > so now i will be equal to 1.......... > after the expression will be evaluated > i++ post increment will work > since, post increment works only if a semi-colon occurs or comma operator > occurs. > so now i will increment after this statement.......... > so now i will be equal to 2........... > :))))))))))))))))))))))))))))))))))))))))))))) > > > > -- > 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. > -- 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.