it is compiler dependent On Aug 1, 5:20 pm, thanu moorthy <moorthyth...@gmail.com> wrote: > Please help me... > > How can the following output be obtained : > > 1.main() > > { > > int i=1; > > printf("%d\t%d\t%d\t",i,i++,i); > > } > > output: 2 1 2 > > 2.main() > > { > > int i=1; > > printf("%d\t%d\t%d\t",i,++i,i); > > } > > output: 2 2 2 > > 3.main() > > { > > int i=1; > > printf("%d\t%d\t%d\t",i,i++,i++); > > } > > output: 3 2 1 > > 4.main() > > { > > int i=1; > > printf("%d\t%d\t%d\t",i,++i,++i); > > } > > output: 3 3 3 > > Regards > by THANU
-- 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.