
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"world foo hello
./word_shift "alone"alone
./word_shiftwrong number of arguments
word_shift.cwritemallocfree<stdlib.h>declares malloc and free<unistd.h>declares write
Run the tests to grade your code
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"world foo hello
./word_shift "alone"alone
./word_shiftwrong number of arguments
word_shift.cwritemallocfree<stdlib.h>declares malloc and free<unistd.h>declares write
Run the tests to grade your code
Memory will appear here