
Implement a function that flips a null-terminated string end-to-end, modifying the original buffer, then hands the same pointer back to the caller.
char s[] = "deploy"; rev_str(s);Expected result
"yolped"For your own tracking. Tests grade your code.
char s[] = "ok"; rev_str(s);Expected result
"ko"char s[] = ""; rev_str(s);Expected result
""Expected files
rev_str.cAllowed functions
None. Write every helper yourself.

v0.40: Create exercises. Challenge the community.
Meet Studio →Implement a function that flips a null-terminated string end-to-end, modifying the original buffer, then hands the same pointer back to the caller.
char s[] = "deploy"; rev_str(s);Expected result
"yolped"For your own tracking. Tests grade your code.
char s[] = "ok"; rev_str(s);Expected result
"ko"char s[] = ""; rev_str(s);Expected result
""Expected files
rev_str.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.