View Single Post
  #1 (permalink)  
Old October 25th, 2012, 10:29 PM
MinusZero MinusZero is offline
Authorized User
Points: 130, Level: 2
Points: 130, Level: 2 Points: 130, Level: 2 Points: 130, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2012
Location: Australia
Posts: 32
Thanks: 1
Thanked 0 Times in 0 Posts
Default Xor Logical Operator Question

Hi,

On page 139 of the book it talks about Logical Operators.

In the definition of Xor (^) it states that "It returns true if one of its operands is true and the other is false".

It doesnt explain how Xor returns false though.

Logically speaking, if both operands are true or both operands are false, does that return a false Xor??

Also, with OR and XOR, are you limited to only two operands for comparison? I would assume with AND you could have more than two.
__________________
"These pretzels are making me thirsty"

Last edited by MinusZero; October 25th, 2012 at 10:35 PM.. Reason: Added another question