Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/02/04 08:05
Read: times


 
#67799 - RE: C Programming language - just a joke
Responding to: ???'s previous message
I think I have the answer:

unsigned char a=0x12, b=0x34;
// place your code here

a = a^b // XOR operator
b = b^a
a = a^b

// Note: these operations can be immediately translated
// to three machine instructions, using A and B

// now it must be that b=0x12 and a=0x34


List of 17 messages in thread
TopicAuthorDate
C Programming language - just a joke            01/01/70 00:00      
   RE: C Programming language - just a joke            01/01/70 00:00      
      RE: April            01/01/70 00:00      
         RE: April            01/01/70 00:00      
   RE: C Programming language - just a joke            01/01/70 00:00      
   RE: C Programming language - just a joke            01/01/70 00:00      
      RE: C Programming language - just a joke            01/01/70 00:00      
   RE: C Programming language - just a joke            01/01/70 00:00      
      RE: C Programming language - just a joke            01/01/70 00:00      
      RE: C Programming language - just a joke            01/01/70 00:00      
      RE: C Programming language - just a joke            01/01/70 00:00      
         RE: C Programming language - just a joke            01/01/70 00:00      
            RE: C Programming language - just a joke            01/01/70 00:00      
   RE: C Programming language - just a joke            01/01/70 00:00      
      IOCCC            01/01/70 00:00      
         RE: IOCCC            01/01/70 00:00      
      RE: C Programming language - just a joke            01/01/70 00:00      

Back to Subject List