Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Is this possible? XOR question
Index -> General Programming
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Prads




PostPosted: Wed Feb 02, 2011 11:18 am   Post subject: Is this possible? XOR question

I was wondering if, let's say, it's given like this,

a XOR b = 56
b XOR c = 22
a XOR c = 46

can we find the values of a, b and c? If yes could you please tell me how. Thanks!
Sponsor
Sponsor
Sponsor
sponsor
Insectoid




PostPosted: Wed Feb 02, 2011 12:30 pm   Post subject: RE:Is this possible? XOR question

Set a, b, or c to zero and see what happens.

Note that 56 XOR 22 = 46, 56 XOR 46 = 22, etc.
Prads




PostPosted: Wed Feb 02, 2011 9:32 pm   Post subject: RE:Is this possible? XOR question

That gives me whole lot of possible combination.
Insectoid




PostPosted: Wed Feb 02, 2011 9:38 pm   Post subject: RE:Is this possible? XOR question

There are a lot of answers.
Display posts from previous:   
   Index -> General Programming
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: