+ 2
x += 2 or x =+ 2 - difference
What is difference between those 2 statements: x += 2 x =+ 2 How they acts in loops, etc ?
3 Réponses
+ 4
Never mind, I googled it.
This is the answer:
x += 3 - this is equation x = x + 3
x =+ 3 - this is declaration like x = +3 (meaning x is 3 and its positive value)
+ 4
:) Should probably give Sudarshan best answer anyway since they went to the effort
+ 3
In x +=2, variable x gets value x = x+2. And in x=+2, it just assigns value 2 to X.