Computer Science, asked by anujjaiswal471, 11 months ago

Explain the two ways to swap the values of two variable of same data types

Answers

Answered by Hiren33
0
using three variables

or only using two variables

1.
a=b
b=c
c=a

2.
a=a+b
b=a-b
a=a-b
Similar questions