Why in all project serial monitor- the negativ integer numbers are presented as 32 bits, not a 16 Bits-2 bytes example :
code:
int a=-3;
void setup() {
Serial.begin(9600);
}
void loop() {
Serial.println(a,BIN);
delay(1000);
}
end
WHY?
Serial.monitor display:32 bits
11111111111111111111111111111101
11111111111111111111111111111101
11111111111111111111111111111101
I think it should show:
only 16 bits 1111111111111101