Practice ยท 2 of 6
Report Struct Layout
CHALLENGE
Difficulty: advanced+25 XP
Given
``c
struct S { char a; int b; char c; };
`
implement void program(void) that prints each member's offset and the struct size:\n \n`\na@0 b@4 c@8 size:12\n`\n \nUse offsetof from <stddef.h> and sizeof` โ measure, do not hard-code.
Press Submit to check your solution.
Back to lesson: Practice: Object Layout Forensics