Arithmetic assignment operators

preview_player
Показать описание
Arithmetic assignment operators
a=a+10 can be represented as a+=10. Here +=
is an arithmetic assignment operator.
The arithmetic assignment operators in C++
are +=, -=, *=, /=, %=. These are also
known as C++ short-hands. These are all
binary operators and the first operand should
be a variable.
Рекомендации по теме