While passing a 2-Dimensional array we have to specify the the column. eg:
void funtion1(a[])// works
{
}
void function2(a[][4])//works
{
}
void function3(a[][])//doesn't work
{
}
What could be the possible reasons that the function3
is considered an incorrect definition.
Is there a different way to define function3
so that we can leave both row and column blank.
Reading some replies:
Can you explain how x[n]
and x[]
are different?. I guess the former represents a specific array position and the latter is unspecified array. More explanation will be deeply appreciated.