← Cisco questions
CodingEasyReported in a candidate post, Feb 2025

Swap two numbers without using a third variable

Filed under Cisco · Also reported at Bitwise, DXC, KPIT, TCS, Truminds, Visa

Write a function to swap two integer variables in-place without using a third temporary variable.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Cisco questions

Collected from public candidate posts and coding forums. Updated Nov 2026.