
Write a program that takes a single string argument, rotates its first word to the end, and prints the result.
./word_shift "hello world foo"Expected result
world foo hello
For your own tracking. Tests grade your code.
./word_shift "alone"Expected result
alone
./word_shiftExpected result
wrong number of arguments
Expected files
word_shift.cAllowed functions
writemallocfreeAllowed headers

v0.40: Create exercises. Challenge the community.
Meet Studio →Write a program that takes a single string argument, rotates its first word to the end, and prints the result.
./word_shift "hello world foo"Expected result
world foo hello
For your own tracking. Tests grade your code.
./word_shift "alone"Expected result
alone
./word_shiftExpected result
wrong number of arguments
Expected files
word_shift.cAllowed functions
writemallocfreeAllowed headers

Run the tests to grade your code
Build your code, then check each test here. Open a result to inspect its output.