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 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.

Reply via email to