Getting close...
> even (int arrE[2][4]);
> odd (int arrO[2][4]);
When calling functions, its just the array name
even ( arrE );
odd ( arrO );
And your even function should look like this
Code:
void even(int arrE[2][4]) {
int temp [2][4]={{2,4,6,8},{10,12,14,16}};/*Populate the even # array*/
int r, c;
for (r=0; r<2; ++r) /*for loop even #'s, for beginning row, max rows and increment*/
{
for (c=0;c<4;++c) /*for loop, for beginning column, max columns, and increment*/
{
arrE[r][c] = temp[r][c];
}
}
return;
}
Something similar for odd...