Wednesday, November 9, 2011

Swapping two integers

Swapping Two Integers using different methods.
     1) Using Temporary variable
     2) Using Arithmetic Operators
     3) Using EX-OR operator

 Here is the complete source code.

Output it as shown Below:

No comments:

Post a Comment