66. Pointer-iv

Question.3

An ISR processes incoming UART bytes into a buffer. Two approaches:

Approach A — index-based:

buf[write_idx++] = UART_DR;

Approach B — pointer-based:

*write_ptr++ = UART_DR;

Which is better suited for an ISR?

Need Help? Refer to the Quick Guide below

Select Answer

Restart quiz!