+ 1

What do you mean a-=b

23rd Feb 2017, 3:53 AM
Divyanshu Jain
Divyanshu Jain - avatar
7 Answers
+ 6
a= a-b;
23rd Feb 2017, 3:56 AM
Roger C
Roger C - avatar
+ 4
a -=b; is a short form to write a = a - b; you can read it as "the new value of 'a' will be equal to the current value of 'a' minus the value of 'b'"
23rd Feb 2017, 4:07 AM
Elf Dragon Air
Elf Dragon Air - avatar
+ 3
It means a=a-b
23rd Feb 2017, 3:56 AM
Mojtaba khadem
Mojtaba khadem - avatar
+ 2
It means b will be subtracted from a and will be assigned to a
23rd Feb 2017, 3:55 AM
Anmol Agrawal
Anmol Agrawal - avatar
+ 2
a-=b => a=a-b
23rd Feb 2017, 4:30 AM
meherDev
meherDev - avatar
+ 2
its a subract b..
23rd Feb 2017, 10:16 AM
Asman Vaishya
Asman Vaishya - avatar
+ 1
It's just the same as a=a-b just see it as if the = sign is not there and the left expression is equal to what was on the left hand sid
3rd Mar 2017, 9:14 PM
Enrique