Suppose we have a loop that runs for 100 times. Does using unsigned char instead of int for its counter make a difference? And also using i += 1U instead of i++? Or do compilers take care of that?
Suppose we have a loop that runs for 100 times. Does using unsigned char
Share
In simple case
intvsunsigned chargives the same code for me:You should profile your code and then optimize slow parts. Do not start with premature optimization.