At university, a supervisor once set me the following C question:
"You have a fully ANSI-compliant C compiler, except that it has a bug which prevents it from recognising 'struct' as a keyword. Reimplement structs by some other means."
The question went on to give some hints, which strongly implied that it was expecting an answer in the form of a function-call API. You define a structure type by calling some functions at run time to tell it the fields and their sizes, and you get back some kind of a data object describing the structure. Then you have accessor functions to get or set a field, which take the structure description as an extra argument, along with the structure pointer and the field id.
Rubbish, I thought. Why would you do anything at run time that you could possibly do at compile time instead?
So instead I turned in a solution that did it all in the preprocessor and 'enum'. You'd define a struct by writing a sequence of macro calls which would expand to an enum that defined each field offset as an enumerated constant, using enum's implicit counting to add up the field sizes. The struct's size would be another enum constant defined at the end. And the field get/set macros would wrap calls to memcpy, with offsets calculated using those enum constants.
The supervisor read my answer and said "I'm never setting you a C question again."