(Solved) : 10 1 5 Pts Wr Ite Main Program Expects Command Line Argument Following Argument Given One Q32681173 . . .
I would like it to be in C
10. (1 5 pts) Wr ite a main program that expects a command-line argument, and does the following: .if no argument is given, or more than one argument is given, it prints “error” if a single argument is given but is not an integer, it prints -1 if a single argument is given and it is an integer, it prints: o 1 if the argument is negative o 2 if the argument is 0 o 3 if the argument is positive the program should exit after printing a single line of output as described above. Show transcribed image text
Expert Answer
Answer to 10 1 5 Pts Wr Ite Main Program Expects Command Line Argument Following Argument Given One Q32681173 . . .
OR