I have problems with a function like this:
/*Specification*/
int * where (void)
{
int pos[2]={0,0};
int i, j;
for (i=0;i<12;i++)
{
for(j=0;j<12;j++)
{
if (t[i][j]=='K')
{
pos[0]=i;
pos[1]=j;
return pos;
}
}
}
return pos;
}
Borland c 3,1 compiler returns with the message :'warning:Function should return a value".
What is the problem with this function ?