What is the name for this type of operator: '+ =', '- ='

Is there a specific name for this type of statement?

Sum += 1; 

I found out about this in my first C ++ class and used it per ton, but I never knew if there was a name for a short hand.

+5
source share
1 answer

Is there a specific name for this type of short?

Yes, it is called compound statement 1 .

According to Source3 , certain of them are called

  • add destination
  • deduction assignment
  • etc.....

1) Source1 , Source2 , Source3

+16
source

Source: https://habr.com/ru/post/1239988/


All Articles