logoalt Hacker News

leni536today at 9:31 AM0 repliesview on HN

> 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.