Sam was looking around for his favorite in place swap algorithm (which is basically just a couple lines of code). But you know what, I think? It’s an abuse of power.
swap(int *a, int *b) { *a ^= *b ^= *a ^= *b; }
Something like that can exist, but in practice, it’s an atrocity. In place swapping is neat nevertheless.
For other things, there’s Python:
a,b = b,a
And that works for both versions.