Skip to content
RED SAGSkills
easy5 pts · first answer countsembedded-cpointers

Accessing a member through a pointer

cfg is a pointer to a struct with a member baud. Which expression reads the member?

struct uart_cfg { uint32_t baud; uint8_t parity; };
struct uart_cfg *cfg = &uart1_cfg;
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions