Make a program in c++ to add two numbers without using + operator | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Make a program in c++ to add two numbers without using + operator

30th Jul 2017, 4:06 AM
Abhishek mohata
Abhishek mohata - avatar
3 Answers
+ 5
Where a and b are integers: a - (-b)
30th Jul 2017, 4:09 AM
Rrestoring faith
Rrestoring faith - avatar
0
a+=b (technically += and + are different operators)
30th Jul 2017, 5:30 AM
Alexander Arkhipov
Alexander Arkhipov - avatar
0
but you don't have to use this(+) operator
30th Jul 2017, 5:31 AM
Abhishek mohata
Abhishek mohata - avatar