Wednesday, June 9, 2010

The simple things I love from 6th grade... XOR revisted

Don't you miss truth tables?

I forgot what XOR means and I had to look it up...

Summary: Every bit is different from its equivalent offset bit.

Quote: "one or the other but not both"

Logic gate:




Wouldn't we all love both though?

And for those who code C++:
a^b is a XOR b and a^=b is a XOR b assigned to a...


No comments:

Post a Comment