It's 1 on dev c++ On Mon, Sep 5, 2011 at 1:17 PM, Nitin <[email protected]> wrote:
> > > On Sun, Sep 4, 2011 at 9:22 PM, vivek goel <[email protected]>wrote: > >> itz my pleasure ..................... >> so u r pursuing ur engg frm where............ >> >> i thk its an undefined behaviour and the answer will vary from compiler to >> compiler..... >> >> On Sun, Sep 4, 2011 at 7:33 PM, sinjanspecial <[email protected]>wrote: >> >>> thanks vivek >>> >>> On Sep 3, 10:29 pm, sinjanspecial <[email protected]> wrote: >>> > code:- >>> > void main() >>> > { >>> > int i=5; >>> > i=(++i)/(i++); >>> > printf("%d",i)} >>> > >>> > Output is 2 >>> > plz explain how it is? >>> >>> -- >>> 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?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 [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?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 [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?hl=en.
