re: Write a function that shows off something unique or interesting about the language you're using VIEW POST

VIEW PARENT COMMENT VIEW FULL DISCUSSION
 

So does C:

int a = 1, b = 999;
a ^= b;
b ^= a;
a ^= b;

OK, so this is specific to numeric values, actually, but it comes in handy in cryptographic code for constant time conditional swaps and things.

 

Thanks Dave.
There is no end to learning.
I feel humbled :)

code of conduct - report abuse