Question: 23 Question 2: (10 points) 24 Implement the function to add matrix A and matrix B. Store the result in matrix sum, which is already

23 Question 2: (10 points) 24 Implement the function to add matrix A and matrix B. Store the result in matrix sum, which is already declared as a global variable. 25 26 void addMatrix() 27 28 29 30 311% 32 Question 3: (10 points) 33 Implement the function to display the 'sum' matrix. For instance, display 34 The matrix sum= 35 1 36 12 37 39 38 39 void displaySumMatrix() 40 41 42 43 44 / 45 Question 4: (10 points) 6 Implement the function to find the minimum element of the array 'a'. 47 48 void minElement ( 49 50 51 52 53 54 23 34 78 3 21 int min0 int a[10] = { 34,56 , 23,78 , 36,98,49, 29,88,62 }; // Enter your code here Unused variable 'a printf( "minimum element in arrayAL]: %d " , min); 56 57 58 Question 5: (10 points) 59 Implement the function to take in 5 numbers from the user and calculate their average. 60 You have to use pointer 'ptr' to store the five numbers. 61 You may not add more variables. You may add variable 'int i' for'for' loop if needed. 62 / 63 void avgOfArray() 64 65 Unused variable 'ptr' float avg = 0, *ptr 0; printf("Enter 5 numbers: "); /7 Enter your code here 67 68 69 70 printf("Average = %02f ", avg)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!