It's 1 on dev c++ On Mon, Sep 5, 2011 at 1:17 PM, Nitin <coolguyinat...@gmail.com> wrote:
> > > On Sun, Sep 4, 2011 at 9:22 PM, vivek goel <vivek.thapar2...@gmail.com>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 <sinjanspec...@gmail.com>wrote: >> >>> thanks vivek >>> >>> On Sep 3, 10:29 pm, sinjanspecial <sinjanspec...@gmail.com> 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 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. >> > > -- 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.