Question: Objectives: Review basic loop, array, and function Requirements: 1. In this lab, one function needs to be implemented with the following function prototype int oddition(int
Objectives: Review basic loop, array, and function Requirements: 1. In this lab, one function needs to be implemented with the following function prototype int oddition(int arrfL Int size): This function recelves an integer array and the size of this array as inputs, computes the sum of this integer array, and returns the sum value as output. The iImplementation of the function should indude comments describing what Iit is intended to do and how this function should be called. 2. A calling function (main function) also needs to be completed, which calls the function described above, then prints out the values in the array and the sum value computed by the function. Example output: Array is: 5, 10, 8, 2, 13 Sum is: 38 Grading Criterla: addition function: 2 polnts main function: 2 points Comments: 1 point General notes: 1. Command to comple your code in cmd/powershell window: gcc labx.c-Wall -Werror 2. If your code couldn't compile with "-Wall-Werror" flags, you will receive an automatic O grade. 1Changing the given function prototype will lead to an automatic o grade. arlables will lead to an automatic O grade
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
