violation of sequence point rule....output depends on compiler to compiler.
On Tue, Jul 3, 2012 at 1:22 PM, rahul sharma <rahul23111...@gmail.com>wrote: > #include<stdio.h> > #include<conio.h> > int main() > { > int i; > i=5; > i=++i/i++; > printf("%d",i); > getch(); > } > > Why o/p is 1 and not 2?? what happened for post increment??? > > -- > 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.