Can you make a program which finds the sum of two numbers without using '+' sign ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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 Answers
+ 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