42. Array Manipulation-i

Question.1

A developer fills a UART transmit buffer of size 8 and then reads it back:

uint8_t tx_buf[8] = {0xA1, 0xB2, 0xC3, 0xD4, 0xE5, 0xF6, 0x07, 0x18};

for (int i = 0; i <= 8; i++) {
   send_byte(tx_buf[i]);
}

What is wrong with this code?

Need Help? Refer to the Quick Guide below

Select Answer