2079 9

BIT102 ยท 2079 ยท 5 marks

Write a program with a function that takes an array as an argument and returns its sum to the main function.

Write a program with a function that takes an array as an argument and returns its sum to the main function. [5]

C ProgrammingChapter 7: Functions and RecursionArrays as function arguments

--- --- Concept Description ------ Function argument arr[] passes the array by reference (address); size passes the count by value Return value return sum; sends the computed sum back to main() Function declaration Prototype int arraySum(int arr[], int size); declared before main() Accumulator Va...