
Write a program that displays the final command-line argument followed by a newline.
./last_arg deploy rollback hotfixExpected result
hotfixFor your own tracking. Tests grade your code.
./last_arg ship-itExpected result
ship-it./last_argExpected result
wrong number of argumentsExpected files
last_arg.cAllowed functions
write
v0.40: Create exercises. Challenge the community.
Meet Studio →Write a program that displays the final command-line argument followed by a newline.
./last_arg deploy rollback hotfixExpected result
hotfixFor your own tracking. Tests grade your code.
./last_arg ship-itExpected result
ship-it./last_argExpected result
wrong number of argumentsExpected files
last_arg.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.