In C Language, please write only the function definition. You can name the function.
Write the function definition for a function with 2 parameters: a double array called "prices" and an integer called "numItems". "numItems" is the count of how many prices are in the array.
This function will have a void return type.
Inside the function:
- Declare a file pointer and a double variable.
- Connect the file pointer to a file called "inputAmount.txt".
- Read one double value from the file.
- Subtract the double value that was read from the file from all the prices in the array.
Assume the file has the correct name and data.
Print the updated array onto the screen in a column.