Can you make a program which finds the sum of two numbers without using '+' sign ? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
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 Réponses
+ 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