is there a short hand way of passing just a row in a 2d array into a function that accepts only 1d arrays. for example something like this even though I know that this doesn't work. I don't want to have to use loops to copy a row from the 2d array into a 1d array and then pass the 1d array into the function foo.
function foo(int array[4]) {
do something
}
int main() {
int test[2][4] = {{1,2,3,4},{5,6,7,8}};
// pass only 1,2,3,4 into the function
foo(test[0][]);
}