
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, flag16sizeof(record) with the fields declared id, stamp, code, flag24record arr[4]; sizeof(arr)64record_set(&r, LONG_MIN, INT_MAX, SHRT_MIN, 255) then all four accessorsstamp=-9223372036854775808 id=2147483647 code=-32768 flag=255record.hrecord.c
Run the tests to grade your code
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, flag16sizeof(record) with the fields declared id, stamp, code, flag24record arr[4]; sizeof(arr)64record_set(&r, LONG_MIN, INT_MAX, SHRT_MIN, 255) then all four accessorsstamp=-9223372036854775808 id=2147483647 code=-32768 flag=255record.hrecord.c
Run the tests to grade your code
Memory will appear here