Skip to content
RED SAG Skills
mediumStudy question · answer published in Embedded C interview questions, so no pointsembedded-cmemory-layout

What offsetof gives

What does offsetof(struct pkt, crc) return?

#include <stddef.h>
struct pkt { uint8_t type; uint8_t len; uint16_t crc; uint8_t data[32]; };
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions