Question: C Question: Write a function called init_array. It is passed 3 parameters, as specified in the prototype below: int init_array(int array[ ], int len, int
C Question:
Write a function called init_array. It is passed 3 parameters, as specified in the prototype below:
int init_array(int array[ ], int len, int start_value);
The ith item in array should be initialized to the value start_value * i. Also, the function should return the sum of the values in array after initialization
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
