int ** foo(int row)
{
int *arr[100];
for(int i=0;i<10;i++)
{
arr[i]=malloc(sizeof(int)*10);
}
int **p=(int**)arr;
return p;
}
what is the problem with this code snippet ? it is not a homework. it is my interview question.