Question: TASK 1 int main(int argc, char *argv[]); Write a program in a single file sum.c which accepts multiple integer numbers as command line arguments and
TASK 1
![TASK 1 int main(int argc, char *argv[]); Write a program in a](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66e3ba23e2a03_35566e3ba2361f7b.jpg)
int main(int argc, char *argv[]); 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 Command line | Output I/sum 1 2 5 |./sum 29 74 -21 78 0 | 160 /sum | 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 taski directory.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
