I have a function that takes an array of fixed size. The contents of the array will be modified in this function so I want to pass the array as a pointer.
Here are the definitions of my arrays:
int u[] = {1, 0 , a}; //a is an integer
int v[] = {1, 0 , a}; //a is an integer
Here is my prototype:
void New_Values(int* u[3], int* v[3], const int q);
Here is my function call:
New_Values(&u, &v, q); //q is an integer
I get the compiler errors:
passing argument 1 of ‘New_Values’ from incompatible pointer type
and
passing argument 2 of ‘New_Values’ from incompatible pointer type