Accenture interview question

Give the logic of a basic C program to swap two numbers without using a temporary variable.

Interview Answer

Anonymous

16 June 2012

The two numbers are stored in two variables a,b. a=a+b; b=a-b; a=a-b;

7