Swapping methods
Filed under Larsen & Toubro
The question
Implement various methods to swap two variables: by reference, by pointers, by value, and without a temporary variable using arithmetic.
No write-up yet. Related questions below have one.
Related Larsen & Toubro questions
Collected from public candidate posts and coding forums. Updated Nov 2026.