int length(int *array[]){
    int len = sizeof(*array) / sizeof(*array[0]);
    printf("The array is of length %d\n",len);
    return len;
}
int main(){
    int array[10] = {1,2,3,4,5,6,7,8,9,10};
    int len = length(&array);
    ...
}
The code above is meant to return the length of an array.However, I get an error when I try to call length from main():
cannot convert int(*)[10] to int** for argument 1 to int length(int**)
How do I pass array to length correctly?
 
     
     
    