Hi everybody,
byte b=0;
b=b+100; is an error but b+=100; is ok. can anyone tell me why. one reason that i can make out is that assignment operator casts the RHS to what the LHS is. Am i correct? but if that is true why is that?
byte b=0;
b=b+100; is an error but b+=100; is ok. can anyone tell me why. one reason that i can make out is that assignment operator casts the RHS to what the LHS is. Am i correct? but if that is true why is that?