View Single Post
Old 10-06-08, 03:31 PM   #1 (permalink)
karan_vampire
Junior Member
 
Join Date: Jun 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 1 karan_vampire is on a distinguished road
Write a program that swaps two integers without using = sigh

Solutions can be either coded in C, C++ or Java.
Write a program that swaps two integers.
Do not use "=" (equal sign) in entire program.
Note: Java Solutions are allowed to use the '=' twice at assignment i.e.
num1 = Integer.parseInt(args[0]) and
num2 = Integer.parseInt(args[1])

this question was poised to me and i am still trying to figure out the possible solution
plz guide and help me

thanks
karan_vampire is offline   Reply With Quote