3 ms·
You are confused about the problem here. It is not that both values are the same, it is you are applying the xor swap using pointers to values, and both pointer
by user-the-name 6y ago
You are confused about the problem here. It is not that both values are the same, it is you are applying the xor swap using pointers to values, and both pointers point to the same value in memory.