Interview Questions

Write a program to interchange 2 variables without using the third one.

C Interview Questions and Answers


(Continued from previous question...)

Write a program to interchange 2 variables without using the third one.

a=7;
b=2;
a = a + b;
b = a - b;
a = a - b;

(Continued on next question...)

Other Interview Questions