Swap two numbers without a third variable using bitwise operations
Filed under MTX
The question
Swap two numbers without using a third variable, specifically implementing it using bitwise operations if possible.
No write-up yet. Related questions below have one.
Related MTX questions
Collected from public candidate posts and coding forums. Updated Nov 2026.