Check out example codes for "x += c++". It will help you in understanding the concepts better.

Code Example 1

int main ()
{
  int a, b=3;
  a = b;
  a+=2;             // equivalent to a=a+2
  cout << a;
}

Learn ReactJs, React Native from akashmittal.com