@Ambika Clearly its compiler dependent , My explanation was for gcc 4.3.2 , So it Depends!!1
On Tue, Jul 26, 2011 at 7:03 AM, ambika iyer <[email protected]> wrote: > @rajeev : in dev cpp the output is coming as 8 2 for the 2nd code.... :( y > is tat so??? > > > On Mon, Jul 25, 2011 at 11:30 PM, aditi garg <[email protected]>wrote: > >> @Rajeev yes its clear now...thanx a lot:) >> >> >> On Mon, Jul 25, 2011 at 11:27 PM, nitesh <[email protected]>wrote: >> >>> Well the output will be compiler dependent. I am using Dev C++ which >>> supports gcc based compilers and am getting deifferent answer >>> >>> #include<stdio.h> >>> main() >>> { >>> int i=1; >>> printf("\n%d",i^=1%2); >>> printf("\n%d %d",i^=1%2,i<<=1%2); >>> return 0; >>> } >>> >>> Output: >>> 0 >>> 1 0 >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Algorithm Geeks" group. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msg/algogeeks/-/0Nl5SIjPGekJ. >>> >>> 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. >>> >> >> >> >> -- >> Aditi Garg >> Undergraduate Student >> Electronics & Communication Divison >> NETAJI SUBHAS INSTITUTE OF TECHNOLOGY >> Sector 3, Dwarka >> New Delhi >> >> 9718388816 >> >> -- >> 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. >> > > > > -- > Ambi :) > > -- > 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. > -- Regards Rajeev N B <http://www.opensourcemania.co.cc> -- 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.
