Due: Tuesday 10/05 10:00am

Arrays and Functions

Hint: For these problems, you might find it helpful to add an extra parameter.

  1. Write a function that takes an array of int values as a parameter and prints it out.
    • Have the output be in the following format: [ v0 v1 v2 ... ]
  2. Write a function that takes an array of int values as a parameter and returns the average of those values.

  3. Write a function that takes 2 arrays of equal size as paramters (you can chose the type). The function should copy the values of the first array into the second.