byte b;
b= b+10;
and
byte b;
b+=10;
The first instance gives an error while the second gives correct output can anyone explain the internal operation here
byte b;
b= b+10;
and
byte b;
b+=10;
The first instance gives an error while the second gives correct output can anyone explain the internal operation here
b += 10 means
But b = b + 10 means:
Both the result will be the same but b+=10 will be preferred over b=b+10. You can find more detail here in this answer: