
Implement a function that receives an unsigned byte and outputs its eight-bit binary representation, MSB first, with no trailing newline.
show_bits(1)Expected result
00000001For your own tracking. Tests grade your code.
show_bits(200)Expected result
11001000Expected files
show_bits.cAllowed functions
write
Implement a function that receives an unsigned byte and outputs its eight-bit binary representation, MSB first, with no trailing newline.
show_bits(1)Expected result
00000001For your own tracking. Tests grade your code.
show_bits(200)Expected result
11001000Expected files
show_bits.cAllowed functions
write
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 →