Why ++ additions only one and not two | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why ++ additions only one and not two

Why ++ additions only one and not two

9th Mar 2018, 7:46 AM
ื‘ื ื™ื” ืœื•ื™ื ื’ืจ
ื‘ื ื™ื” ืœื•ื™ื ื’ืจ - avatar
3 Answers
+ 8
You could always overload it to make it add two instead of one ๐Ÿ˜
9th Mar 2018, 8:17 AM
jay
jay - avatar
+ 7
it's an unary operator.it works on one variable at a time.++ is not addition,it increments variables by one
9th Mar 2018, 8:13 AM
แ Œแ ŒBrains[Abidemi]
แ Œแ ŒBrains[Abidemi] - avatar
+ 1
Jay! That is a new level of evil. LOL ๐Ÿ˜‚
9th Mar 2018, 9:22 AM
Kerrash
Kerrash - avatar