C++ swap with out using temporary?

0 votes
29 views
asked Dec 17, 2013 in C++ by codeFORJR

HI all

   Sample code for swap with out using temporary? in c++

1 Answer

0 votes
answered Dec 17, 2013 by raghava
int a,b; scanf("%d %d",&a,&b); b=(a+b)-(a=b); printf("%d %d",a,b);
...