
Write a program that displays each command-line argument on its own line, printing the last argument first and the first argument last.
./args_rev ship it backwardExpected result
backward
it
shipFor your own tracking. Tests grade your code.
./args_rev rollbackExpected result
rollback./args_revExpected result
(empty result)
Expected files
args_rev.cAllowed functions
write
v0.40: Create exercises. Challenge the community.
Meet Studio →Write a program that displays each command-line argument on its own line, printing the last argument first and the first argument last.
./args_rev ship it backwardExpected result
backward
it
shipFor your own tracking. Tests grade your code.
./args_rev rollbackExpected result
rollback./args_revExpected result
(empty result)
Expected files
args_rev.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.