if a and b are not equal a^b will evaluate to a non zero value. If they are equal, a^b will be 0 and a&b will be a non zero value. In either case, the value is > 0
@Aditya: +1. It'll become 0 only if a=b=0 or if the MSB is 1 and rest all bits are 0 (a=b in both cases) -- 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.
