Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Challenge: Identify ways to use XOR logical operator
#1
Many people never use exclusive-or (XOR). A professor at NYU, who had a PHD in Computer Science, while giving a class on "C" programming in 1985, described how it worked and then said "But who knows why you would ever use it." I almost had a fit.

Anyway, I sure you guru's can come up with many uses. But, let's keep them practical, i.e., give examples that make sense and are really useful.

Post a description of how you're using the XOR, and then give a coding example, which will usually be one line of code. Try not to be too critical of post submitted by others, and let's keep the BS down.

Thanks,
Moneo
*****
Reply


Messages In This Thread
Challenge: Identify ways to use XOR logical operator - by Moneo - 06-21-2003, 07:12 AM
To Seph: - by Moneo - 06-21-2003, 07:41 AM
To LooseCaboose: - by Moneo - 06-21-2003, 08:59 AM
To drV: - by Moneo - 06-21-2003, 09:24 AM
Re: To drV: - by DrV - 06-21-2003, 09:39 AM
To Toonski84 - by Moneo - 06-21-2003, 10:03 AM
Re: To drV: - by relsoft - 06-22-2003, 02:20 PM
Sample reason for using XOR. - by Moneo - 06-23-2003, 09:33 PM
Update: - by Moneo - 07-03-2003, 11:32 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)