Question: i need excersie 1, exercise 2, & exercise 3 answered in c language Exercise 1 In main, create three 2 x 2 int arrays. Initialize
Exercise 1 In main, create three 2 x 2 int arrays. Initialize all arrays to 0. Using scanf (or scanf_s) within main enter values to the two out of the three arrays. Pass all three arrays into function void myAddition and add the two arrays. Assign the result to the third array. Print resulting array from within main Exercise 2 In main, create an int array of size 5 and initialize to the value 0. Ask the user to enter two numbers and assign the numbers entered to the first and the last elements of the array. Your method should work for any array size not just for a 5-element array Note: Make use of sizeof operator to find out the number of elements in an array Exercise 3 Given the following int array in main with values: 10, 34, 0, -3, 7, 3, 15, 8, 2, 23. Write a function that accepts the int array and finds the minimum value of the array. The minimum value is returned to main. Similarly, write a second function that finds the maximum value in the array that is returned to main. Write a third function that finds the average value of the array and the average value is returned to main. Print all three findings (min, max, average) from within main
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
