Question: Question 1: How do you compute the average of all ellements in a 4D array using nested for loops? Question 2: Then i need to
Question 1: How do you compute the average of all ellements in a 4D array using nested "for" loops?
Question 2: Then i need to compute the average of all elements in the 4D array as above but this time i need to access them in order linearly using compact pointer operations?
The array is as follows with random numbers in each one:
testArray[10] [7] [6] [8] = random numbers
This will be in C++
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
