write c++ program to swap two variables without third variable...if you can???
Answers
Answered by
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 ();
}
void main()
{
int a=10;
int b=5;
a=a+b;
b=a-b;
a=a-b;
cout<<a<<b;
getch ();
}
Bharadwaj981:
Crrt
Similar questions