I have a 2dimensional array and I only want to pass one row to a function. The array is setup as:
myArray[4][8];
I call the function:
status = functionx(myArray[j]); where j is the row
Fuction Prototype:
short functionx(short *myArray);
Function:
short functionx(short *myArray)
Is this correct? The program is very cpu intense and I trying to get all the performance out of the code as possible. I did not see much gain by changing the code
to use pointers. Just checking to see if I wrote the code correctly.
Thanks
myArray[4][8];
I call the function:
status = functionx(myArray[j]); where j is the row
Fuction Prototype:
short functionx(short *myArray);
Function:
short functionx(short *myArray)
Is this correct? The program is very cpu intense and I trying to get all the performance out of the code as possible. I did not see much gain by changing the code
to use pointers. Just checking to see if I wrote the code correctly.
Thanks