Cari Blog Ini

20 November 2010

IT - Operator Shorthand

* A variable which is used, modified and assigned to the same variable.
Example :
i = i + 8
Can be changed to  i += 8

* “+=“ is addition assignment operator in shorthand operator.
* This kind of operator must not be separated by space
(+=, NOT + =)