
Implement a function that converts an integer to its decimal string representation, allocating the result on the heap.
int_to_str(0)Expected result
"0"For your own tracking. Tests grade your code.
int_to_str(404)Expected result
"404"int_to_str(-2048)Expected result
"-2048"Expected files
int_to_str.cAllowed functions
mallocAllowed headers

Implement a function that converts an integer to its decimal string representation, allocating the result on the heap.
int_to_str(0)Expected result
"0"For your own tracking. Tests grade your code.
int_to_str(404)Expected result
"404"int_to_str(-2048)Expected result
"-2048"Expected files
int_to_str.cAllowed functions
mallocAllowed headers

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 →