Interview Solution

There’s an old story about the person who wished his computer were as easy to use as his telephone. That wish has come true, since I no longer know how to use my telephone. Bjarne Stroustrup

Swap Number

Language Java | Level Intermediate | Category Interview Problems | July 24, 2015 4:52 pm


Interview Problem

Swap two Numbers without using any temp variable.
Write program to swap two integer without using any temporary variable
Given integer a = 4 and b=5
The result change a = 5 and b = 5


Before swap: a=4 b=5
After swap: a=5 b=4



Please login to add comments.