Elucidation of terms in arrays:

Let us consider an example:

int a [5] = {5,6,1,0,-1};

In the above one-dimensional array, the size is 5, hence this array can accommodate only 5 integer values. Here, 5,6,1,0 and -1 are known as elements of an array, which are stored at specific indices, for instance index of element ‘5’ is ‘0’. The minimum valued element in the above array is ‘-1’ and its index is ‘4’, similarly maximum valued element is ‘6’ and its index is ‘1’. Similar is the case for two-dimensional arrays as well, if we say the sum of all elements in the above onedimensional array then the output should be ‘4+6+1+0+(-1)=10’, considering the above explanation you are advised to write the full implementation of the below function prototypes.

int array1DMinValueElement(int[ ]);

int array1DMinValueElementIndex(int[ ]);

int array2DMinValueElement(int [ ] [COL]);

int array2DMinValueElementIndex(int[ ][COL]);

int array2DMaxValueElement(int[ ] [COL]);

int array2DMaxValueElementIndex(int[ ][COL]);

int array1DMaxValueElement(int[ ]);

int array1DMaxValueElementIndex(int[ ]);

int sum1DArrayElements(int [ ]);

int sum2DArrayElements(int [ ] [COL]);

void matrixProduct(int [ ] [COL], int [ ] [ COL]);

**What I have tried:**

How can I write the full implementation of the function prototypes?

// This program demonstrates how to find the value with maximum value in a 2-dimensional array

#include <iostream> // pre-processor directive

using namespace std; // uses classes or functions from the "std" namespace

const int ROW = 2; // defining 2 as the number of rows

const int COL = 2; // defining 2 as the number of columns

// function prototype

int array2DMaxValueElement(int[][COL]);

// main function - where program execution takes place

int main()

{

int maxValueElement[ROW][COL];

int i;

int j;

for (i=0;i<row;i++)

{

=""

="" for="" (j="0;j<COL;j++)

" cout="" <<="" "enter="" the="" elements="" this="" 2-d="" array:="" ",="" i+1,="" j+1;

="" cin="">> maxValueElement[i][j];

}

}

cout << array2DMaxValueElement(maxValueElement);

}

// function definition

int array2DMaxValueElement(int element[][COL])

{

// variable declaration

int maxValue;

int i; // variables used for for-loops

int j; // variables used for for-loops

maxValue = element[0][0];

for(i=0;i