[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: Fwd: how this C code works?



only i later i learnt that it's a joke intended for C programmers!

thanks!

- Diwakar

At 10:46 PM 25-01-01 +0530, you wrote:
>Try this: really weird code to swap values of two int-type variables
>without overflows in C or Perl (and maybe other insignificant
>languages like Java and Python also... as if anyone cared):
>
>        i^=j^=i^=j
>
>C isn't too bad sometimes... just that Perl is better ;-)  I would
>never have shifted from C to Perl if there were even one thing which I
>could do in C and not in Perl... haven't found that missing bit yet.
>
>-- Raju

-- 
Got something to say? Subscribe to tamil.com e-mail discussion
forums!

The teen mailing list:    mailto:teen-subscribe@xxxxxxxxxxxxxxx
Art discussions:          mailto:art-subscribe@xxxxxxxxxxxxxxx
Literary discussions:     mailto:books-subscribe@xxxxxxxxxxxxxxx
Infotech:                 mailto:it-subscribe@xxxxxxxxxxxxxxx
For 18 years and above:   mailto:sex-subscribe@xxxxxxxxxxxxxxx