i think it'sCode:101011 XOR 110101 ------
100001
just thought i'd post something completely random because this topic is boring.
im a retard
i think its 11110
This is a discussion on xor (was fgets) within the C Programming forums, part of the General Programming Boards category; Code: 101011 XOR 110101 ------ i think it's 100001 just thought i'd post something completely random because this topic is ...
i think it'sCode:101011 XOR 110101 ------
100001
just thought i'd post something completely random because this topic is boring.
im a retard
i think its 11110
Last edited by Brian; 08-18-2002 at 07:43 PM.
>i think its 11110
011110
-Prelude
My best code is written with the delete key.
Okay, can someone please clarify how XOR works?
>Okay, can someone please clarify how XOR works?
If both of the bits compared are the same then the resulting bit is 0, if the bits being compared are different then the resulting bit is 1.
-PreludeCode:101011 XOR 110101 ------ 011110 0 ^ 0 = 0 1 ^ 1 = 0 1 ^ 0 = 1 0 ^ 1 = 1
My best code is written with the delete key.