Can you make a program which finds the sum of two numbers without using '+' sign ? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
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 Antworten
+ 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