maybe there are many ways doing what you want. for example:
i assume the data type for your arrays is 'float'.
float** NE()
{
// allocates the 2-D dynamic array and returns the its address.
}
float* T()
{
// allocates the 1-D dynamics array and returns its address.
}
void RES( float** array2d, float* array1d ) // you may change the return type of this function to something else depending on your need.
{
// does something with the 2-D and 1-D arrays.
}