Computer Science, asked by Bharadwaj981, 1 year ago

write c++ program to swap two variables without third variable...if you can???

Answers

Answered by jks11
3
logic of this program is
void main()
{
int a=10;
int b=5;
a=a+b;
b=a-b;
a=a-b;
cout<<a<<b;
getch ();
}

Bharadwaj981: Crrt
jks11: obviously it is correct....i learn 5 programming language sir
Bharadwaj981: that's great
jks11: hmmm
Similar questions