
The starter clamp.c fails to build on three separate diagnostics: clear all three so clamp returns v held inside the bounds lo and hi.
clamp(7, 0, 10)Expected result
7For your own tracking. Tests grade your code.
clamp(42, 0, 10)Expected result
10clamp(-5, 0, 10)Expected result
0clamp(99, 10, 3)Expected result
10Expected files
clamp.cAllowed functions
None. Write every helper yourself.

v0.40: Create exercises. Challenge the community.
Meet Studio →The starter clamp.c fails to build on three separate diagnostics: clear all three so clamp returns v held inside the bounds lo and hi.
clamp(7, 0, 10)Expected result
7For your own tracking. Tests grade your code.
clamp(42, 0, 10)Expected result
10clamp(-5, 0, 10)Expected result
0clamp(99, 10, 3)Expected result
10Expected files
clamp.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.