I've a function prototype:
int array_length(char *(ptr)[1024]){
...
}
I want to call this function into another function. I have:
char array_slave[128][1024];
char (*ptr)[1024] = array_slave;
array_length(&ptr);
As the compiler says, this is wrong. But why? Can you explain me "theorically" how to do in this situation? What is the reasoning to do?