4 ms·
> The XOR trick is only cool in its undefined-behavior form: > a^=b^=a^=b; I believe this is defined in C++ since C++17, but still undefined in C.
by leni536 6mo ago
> The XOR trick is only cool in its undefined-behavior form:
> a^=b^=a^=b;
I believe this is defined in C++ since C++17, but still undefined in C.