The algorithm is primarily a novelty and a way of demonstrating properties of the exclusive or operation. It is sometimes discussed as a program optimization, but there are almost no cases where swapping via exclusive or provides benefit over the standard, obvious technique.
The algorithm is primarily a novelty and a way of demonstrating properties of the exclusive or operation It is sometimes discussed as a program optimization but there are almost no cases where swapping via exclusive or provides benefit over the standard obvious technique