CS 355 - Systems Programming Lab 1 - Command line C programming
Objective: write a program that can accept command line parameters and produce output to the terminal.
- Write a C program myprog that can accept an arbitrary number of command line arguments, e.g.
myprog Have a nice day!
myprog must print all command line parameters in the reverse order. For example, for the parameters specified above, myprog must produce the following output:
day! nice a Have
Use three test cases to verify the correctness of your code as follows:
-
myprog
-
myprog Hello, world!
-
myprog systems programming is the most useful course
- A single C source code file with your work.
- At least three screenshots (in PNG or JPG format) showing your program executing each of the three test cases on a Linux terminal.