I am getting confused on how to correctly create a function declaration (or prototype) and a function definition when using arrays.
example: If I have a function called myfunction and I wish to pass array_A[5] and array_B[3][3] would this be correct?
FUNCTION DECLARATION:
void myfunction(int array[], int array2[][3]);
FUNCTION DEFINITION:
void myfunction(int array[], int array2[][3]);
{
...
....
}
My function declaration and definition look exactly the same. Is that correct?
Something is wrong here but I can't quite figure out what.
Please guide me!
example: If I have a function called myfunction and I wish to pass array_A[5] and array_B[3][3] would this be correct?
FUNCTION DECLARATION:
void myfunction(int array[], int array2[][3]);
FUNCTION DEFINITION:
void myfunction(int array[], int array2[][3]);
{
...
....
}
My function declaration and definition look exactly the same. Is that correct?
Something is wrong here but I can't quite figure out what.
Please guide me!