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 11:05
Read: times


 
#67806 - RE: C Programming language - just a joke
Responding to: ???'s previous message
hi,

thanks, you got it!

BTW, with logic way, it may be wrote with one line (that we call "bad style" :)

b = a^b^(a=b);

...but strange thing appears: Visual C++ compiles it with correct way, and Keil C does not do.

Another thing is that we are in C51 forum. You know, 8051 has fine instruction XCH A,.... which may help with our task alot. Unfortunatelly, I have not found a way to say C-compiler to use it when I need to exchange two variables :(

Regards,
Oleg


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