
Implement an allocated counter whose fields stay private to meter.c.
meter *m = meter_create(9); meter_add(m, -4); meter_value(m)Expected result
5For your own tracking. Tests grade your code.
Expected files
meter.hmeter.cAllowed functions
mallocfreeAllowed headers

v0.40: Create exercises. Challenge the community.
Meet Studio →Implement an allocated counter whose fields stay private to meter.c.
meter *m = meter_create(9); meter_add(m, -4); meter_value(m)Expected result
5For your own tracking. Tests grade your code.
Expected files
meter.hmeter.cAllowed functions
mallocfreeAllowed headers

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