hi ,
i am facing problem passing array to a function .
my function prototype is
void function(array_type **array_name,....)
{
....
array_name[j][k] = ...
}
when i am trying to call this function with an actual parameter which is declared as
array_type array_name[rows][cols]
i am getting a segmentation fault . Inside the function
the 2-d array is being treated as a 1-d dimension so if
i do
array_name[j*..+k*..] instead of array_name[j][k]
it is working .
i am unable to figure out why this is happening ?