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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!