The answer is indeed 56. Explanation: Increment operator has highest priority so (i++)*(i++) will be evaluated as (7)*(8)=56 This is valid only in C
On Tue, Sep 15, 2009 at 6:45 PM, nitin mathur <[email protected]>wrote: > @ Tanmoy > Same logic I explained..interviewer didn't give me any clue whether > the explaination is correct or not.. > > but when I googled it now I found the answer 56. > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/algogeeks -~----------~----~----~----~------~----~------~--~---
