Hi there,
I am having a problem of passing arrays to functions, here is my code:
void zeroMatrix(float **arr);
void main()
{
float e[2][2];
zeroMatrix(e);
}
void zeroMatrix(float** arr)
{
int i,j;
for (i=0;i<2;i++)
{
for(j=0;j<2;j++)
{
*( *(arr +i)+j) =0;
}
}
}
The problem is I want to allocate dynamically an array and to pass to a function.
Cheers guys