0

How do I pass a single row of a 2 dimensionsl aarray to a function?

```
#include <iostream>
#include <iomanip>
#include <fstream>
#include <cstdlib>
using namespace std;
// ------ Prototypes ------------------------------------------------------
double calcNums(double[]);
// ****** MAIN ************************************************************
int main()
{
double nums[2][5] = {1,2,3,4,5,6,7,8,9,10};
calcNums(nums[1][5]);
return 0;
}
double calcNums(double nums[1][5])
{
double calc = 0;
// calc = nums[1] + nums[2] + nums[3] + nums[4] + nums[5];
return calc;
}
```

I know my syntac is all wonkalicious, but I have no clue how to code this. (barring sending the entire row each time.)