Swap two integers without using any extra memory.
Anonymous
Take 2 variable a and b Then take values from user or you can give values to a and b like a=20 b=30 Then a=a+b b=a-b a=a-b Now a=30 b=20
Check out your Company Bowl for anonymous work chats.