Difference between two seperate swaps
What are the advantages/disadvantages of XOR swap over using a temporary variable? I think it looks cleaner to use an XOR and also eliminates using an extra variable, however that's really not a big deal anyways with all the memory available. Why don't schools teach more about bitwise operators? Are they really that unimportant?
int x=5,y=12, temp;