This might be of interest for those sitting for placement. How do you swap two integers in C without creating a temporary variable ?
1 2 3 4 5 6 7 8 9 10 11 | |
Found it on the usenet C FAQ, question 3.3b. It comes with a warning that the code might not be portable across compilers.
Courtesy: Anand Kumar Saha