In C++,
i = ++++j;
works fine in the code but when I use,
i = j++++;
I receive the following error:
you are getting this error because the postfix operator returns a value and not a reference. But for clarity you should probably not do i=j++++; it might be more clear to say i = j += 2; or separate the lines into i = j+2; j+=2; or j+=2; i = j;.
i=j++++;
i = j += 2;
i = j+2; j+=2;
j+=2; i = j;