Objective
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.
Steps
$ sizeof(record) with the fields declared stamp, id, code, flag
16
$ sizeof(record) with the fields declared id, stamp, code, flag
24
$ record arr[4]; sizeof(arr)
64
$ record_set(&r, LONG_MIN, INT_MAX, SHRT_MIN, 255) then all four accessors
stamp=-9223372036854775808 id=2147483647 code=-32768 flag=255
Expected files
Allowed functions
None. Write every helper yourself.

Objective
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.
Steps
$ sizeof(record) with the fields declared stamp, id, code, flag
16
$ sizeof(record) with the fields declared id, stamp, code, flag
24
$ record arr[4]; sizeof(arr)
64
$ record_set(&r, LONG_MIN, INT_MAX, SHRT_MIN, 255) then all four accessors
stamp=-9223372036854775808 id=2147483647 code=-32768 flag=255
Expected files
Allowed functions
None. Write every helper yourself.

Tests
Run the tests to grade your code