Birlasoft interview question

How to swap two numbers without a third variable.

Interview Answers

Anonymous

Jan 26, 2021

Use pen and paper...or notepad

1

Anonymous

Apr 9, 2021

int x=5; int y=4; x=x+y; //x*y y=x-y; //x/y x=x-y; //x/y Print x and y