Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
The compound assignment operator provides a shortcut notation x op= y; for the expression x = x op y; where x,y are variables and op one of the supported operators: +,-,*,/,%...
x op= y;
x = x op y;
x,y
op
+,-,*,/,%...
The compound assignment operator provides only the shortcut notation x += y; for the expression x = x + y; where x,y are variables.
x += y;
x = x + y;
The compound assignment operator allows to join two strings of text as c << "text A" << "text B";
c << "text A" << "text B";
The compound assignment operator provides the shortcut notation x++; for the expression x = x + 1;
x++;
x = x + 1;
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!