Added Example and work of += operator (#23826)

* Added Example and work of += operator

* Fixed formatting
This commit is contained in:
Priyanshu kumar
2018-11-29 06:32:27 +05:30
committed by Manish Giri
parent 0cecde85d8
commit e2fe9d1fc5

View File

@ -22,6 +22,10 @@ While most of the operations are self-explanatory, the Conditional (Ternary) Ope
`expression that results in boolean output ? return this value if true : return this value if false;` `expression that results in boolean output ? return this value if true : return this value if false;`
The Assignment operators (`+=`, `-=`, `*=`, `/=`, `%=`, `<<=`, `>>=`, `&=`, `^=`, `|=`) are just a short form which can be extended.
Example:
(`a += b`) does the same thing as (`a = a + b`)!
Example: Example:
True Condition: True Condition: