Home » Technical Questions » Programming

Swap two variables without using third variable.

Correct Answer: #include int main(){ int a=5,b=10; a=b+a; b=a-b; a=a-b; printf("a= %d b= %d",a,b); }

← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion