Question: I have previous functions implemented that takes input from two different .txt files, input_one and input_two and sums them up. The function I need to

I have previous functions implemented that takes input from two different .txt files, input_one and input_two and sums them up. The function I need to implement is one that saves the sum as an output to an output file.

Create a function, void save_output(char** argv, unsigned int* input_one, unsigned int* input_two, unsigned long int* output, int num_ints) in C.

This function saves the summed output to an output file, .txt, whose name was specified with the program execution (i.e., argv[3]). The file should contain one integer value per line.

input parameters:

char** argv

unsigned int* intput_one

unsigned int* intput_two

unsigned long int* output

int num_ints

return parameters:

none

Do NOT hard-code the file names.

Do NOT hard code the size of the unsigned (long) integer arrays.

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!