hi: for these kinda questions, the behavior is not defined. as in C++ standard, it's not suggested to have two ++ in one expression. So the result may depends on compiler.
Regards, Chunyuan On Tue, Sep 15, 2009 at 8:57 PM, ntini <nitinkumar.mat...@gmail.com> wrote: > > Hi Friends, > > Today I had interview @ Citrix. I was asked a question. > > int i=7; > printf("%d", i++*i++); > > > what printf will print.. > > Please Explain. > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---