It will print 49 and the value of i after execution of printf statement becomes 9 so since its a postfix increment first i*i is done and then i will be incremented twice
On Tue, Sep 15, 2009 at 6:27 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 -~----------~----~----~----~------~----~------~--~---