Whoops! I was looking at the wrong page...anyway...
Again, your use of a pointer to point to a pointer inside "function" is superfluous. I noticed that the rules governing char's and int's are slightly different here:
Code:
#include <stdio.h>
void function(int (*array)[4])
{
int i, j;
for(i=0; i<=1; i++)
{
for(j=0; j<=3; j++)
{
printf("%d\n", array[i][j] );
}
}
}
void funchar(char **array)
{
int i, j;
for(i=0; i<=1; i++)
{
for(j=0; j<=3; j++)
{
printf("%c\n", array[i][j] );
}
}
}
int main(void)
{
int i, j;
char *ray[2] = {"this","that"};
int array[2][4] = {{11,22,33,44}, {55,66,77,88}};
function(array);
funchar(ray);
}
Output:
11
22
33
44
55
66
77
88
t
h
i
s
t
h
a
t