swap with out using temporaryThis tip submitted by raghava on 2006-07-17 05:26:35. It has been viewed 21691 times.
Rating of 6.2 with 365 votes
int a,b; scanf("%d %d",&a,&b); b=(a+b)-(a=b); printf("%d %d",a,b);
Help your fellow programmers! Add a tip!