Interview Question

Interview(Student Candidate)

Can you make swapping value of two number program using

  only two variable.( without using temp variable.)
Answer

Interview Answer

1 Answer

0

int a,b; a=10; b=20; a=a+b; b=a-b; a=a-b;

Interview Candidate on Jun 12, 2012

Add Answers or Comments

To comment on this, Sign In or Sign Up.