0

Can you make a program which finds the sum of two numbers without using '+' sign ?

31st Jan 2017, 3:16 PM
Vikas Rajput
Vikas Rajput - avatar
2 Respostas
+ 4
cout << a - (-b);
31st Jan 2017, 3:24 PM
Álvaro
- 2
Check the internet for bitshift << (cout uses it overloaded ;) )
31st Jan 2017, 4:16 PM
~datell