
Write a function that mirrors all 8 bits of an unsigned byte and returns the result.
reverse_bits(2)Expected result
64For your own tracking. Tests grade your code.
reverse_bits(170)Expected result
85Expected files
reverse_bits.cAllowed functions
None. Write every helper yourself.

Write a function that mirrors all 8 bits of an unsigned byte and returns the result.
reverse_bits(2)Expected result
64For your own tracking. Tests grade your code.
reverse_bits(170)Expected result
85Expected files
reverse_bits.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.
v0.40: Create exercises. Challenge the community.
Meet Studio →