104. Strings and Character Handling-i

Question.3

A developer copies a received UART command into a fixed buffer:

char cmd_buf[8];
char *received = "CALIBRATE";  // 9 chars + \0 = 10 bytes
strcpy(cmd_buf, received);

What happens?

Need Help? Refer to the Quick Guide below

Select Answer