+ 1

Assigment Question

Will Some Other Primitive Operator(Like +,*,-)Affect The Assignment Operator?,The Example Code num1=8; num2=2; num2 -= num1 + num2; Will The Output Is Still 8?,Or Produce An Error?(Cause I Want To Solve One Of The Code Project)

25th Dec 2021, 2:19 PM
Lidya Reine
Lidya Reine - avatar
2 Réponses
+ 2
num2 -= num1 + num2 subtracts from num2 the sum of num1 and num2
25th Dec 2021, 4:55 PM
Emerson Prado
Emerson Prado - avatar
+ 1
What Was The Reason It Becomes -8?
25th Dec 2021, 2:37 PM
Lidya Reine
Lidya Reine - avatar