Citi

www.citigroup.com

Interview Question

Technology Analyst Interview(Student Candidate) New York, NY

How do you swap two integer variables without using a temp

  variable?
Answer

Interview Answer

1 Answer

2

a = a + b; b = a - b; a = a - b

Interview Candidate on May 3, 2013

Add Answers or Comments

To comment on this, Sign In or Sign Up.