+ 2
How to write a program in c++ to swap two numbers using a function i.e swap plz help...
5 Respostas
+ 8
1) use a third variable
2) a = (a+b) - (b=a);
3) a=a+b;
b=a-b;
a=a-b;
4) std::swap(a,b);
+ 1
where is cout statement??
this program can not print the newly swaped value ::yash thatthe
0
oh ez