Swap numbers with out 3rd variable
AnswerBot
1y
Swapping numbers without using a third variable
Use addition and subtraction to swap the values
Use XOR operation to swap the values
Use multiplication and division to swap the values
Anonymous
2y
this is swaping without 2 variables a=a+b-(b=a)
Help your peers!
Add answer anonymously...
Top TCS Assistant System Engineer Trainee interview questions & answers
Popular interview questions of Assistant System Engineer Trainee
Top HR questions asked in TCS Assistant System Engineer Trainee
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app