Question.2
Two developers declare a UART receive buffer:
Developer A:
int rx_buf[32];
Developer B:
uint8_t rx_buf[32];
The UART peripheral delivers single bytes (0x00–0xFF). Which buffer is better for firmware use?
0x00
0xFF
Select Answer
Both are equivalent — int can store byte values too
int
Developer A's is better — int is the native register width and faster
Developer B's is better — it matches the data width and saves memory
Neither — char[] should be used for byte buffers
char[]