104. Strings and Character Handling-i

Question.1

A developer builds a response string for UART transmission:

char resp[4];
resp[0] = 'O';
resp[1] = 'K';
resp[2] = '\r';
resp[3] = '\n';
printf("%s", resp);

What happens when printf is called?

Need Help? Refer to the Quick Guide below

Select Answer