โ† Oracle questions

Swap two variables without extra variable or function

Filed under Oracle

Swap the values of two integer variables, 'a' and 'b', without using a third temporary variable or any built-in functions. The operation must be performed in-place.

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 Oracle questions

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