Question: int main(int argc, char wargv) Write a program in a single file sum.c which accepts multiple integer numbers as command line arguments and prints their
int main(int argc, char wargv) Write a program in a single file sum.c which accepts multiple integer numbers as command line arguments and prints their total to the standard output. You need to use a standard library function such as strtol to convert from string to number. Example commands that you can issue in the shell and the printed output are as the following. I Command line Output I/sum 1 25 I /sum 29 74 -21 780 160 I/sum I no input numbers It is highly recommended that you adapt the test scripts provided in homework 4 to test your code here too +Include your sum.c in your repository (create taskl directory
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
