
Declare the four fields of record in the order that brings sizeof(record) down to 16 bytes, then implement the accessors Grademe uses to read them back.
sizeof(record) with the fields declared stamp, id, code, flagExpected result
16For your own tracking. Tests grade your code.
sizeof(record) with the fields declared id, stamp, code, flagExpected result
24record arr[4]; sizeof(arr)Expected result
64record_set(&r, LONG_MIN, INT_MAX, SHRT_MIN, 255) then all four accessorsExpected result
stamp=-9223372036854775808 id=2147483647 code=-32768 flag=255Expected files
record.hrecord.cAllowed functions
None. Write every helper yourself.

v0.40: Create exercises. Challenge the community.
Meet Studio →Declare the four fields of record in the order that brings sizeof(record) down to 16 bytes, then implement the accessors Grademe uses to read them back.
sizeof(record) with the fields declared stamp, id, code, flagExpected result
16For your own tracking. Tests grade your code.
sizeof(record) with the fields declared id, stamp, code, flagExpected result
24record arr[4]; sizeof(arr)Expected result
64record_set(&r, LONG_MIN, INT_MAX, SHRT_MIN, 255) then all four accessorsExpected result
stamp=-9223372036854775808 id=2147483647 code=-32768 flag=255Expected files
record.hrecord.cAllowed functions
None. Write every helper yourself.

Run the tests to grade your code
Build your code, then check each test here. Open a result to inspect its output.