5 Answered Questions for the topic Xor

Xor Logic

07/11/19

#### Pass two integers as one integer?

I have two integers that I need to pass through one integer and then get the values of two integers back.
I am thinking of using Logic Operators (AND, OR, XOR, etc) .

07/06/19

#### XOR of three values?

What is the simplest way to do a three-way exclusive OR?
In other words, I have three values, and I want a statement that evaluates to true IFF only *one* of the three values is true.
So far,...
more

#### What does Exclusive in XOR really mean?

Maybe this is just obvious to everyone but can someone explain where XOR (or Exclusive-OR) got its name from? What does the word ***Exclusive*** really mean? Not that it matters, but its just stuck...
more

#### C: XNOR / Exclusive-Nor gate?

I am trying to find the most effective way of writing a XNOR gate in C.
if(VAL1 XNOR VAL2)
{
BLOCK;
}
Any suggestions?
Thanks.

#### In Java XOR with three true inputs returns true. Why?

The following code
System.out.println("1 0 0: " + (true ^ false ^ false));
System.out.println("1 0 1: " + (true ^ false ^ true));
System.out.println("1 1 0: " + (true ^ true ^ false));
...
more

## Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.

Most questions answered within 4 hours.

#### OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.