0

As the title says, why do I need an int to store a byte & byte operation. For example,

byte a = -128;
byte d = -0x7f;
byte b = a & d; // <-- error - can't convert from int to byte

I think 8bit & 8bit = 8bit Is that wrong?

user207421
  • 305,947
  • 44
  • 307
  • 483
sibo.wang
  • 65
  • 8

0 Answers0