Suppose I have a function like that
char OnRelease()
{
int i,j,k;
int row[4]={PIN_A0,PIN_A1,PIN_A2,PIN_A3};
int col[4]={PIN_D3,PIN_D2,PIN_D1,PIN_D0};
char array[16]={'1','4','7','<','2','5','8','0','3','6','9','>','C','&','E','M'};
set_tris_a(0xff);
set_tris_d(0x00);
k=0;
for(i=0;i<4;i++)
{
output_d(0xff);
output_low(col[i]);
for(j=0;j<4;j++)
{
if(input(row[j])==0)
{
do
{
}
while(input(row[j])==0);
return array[k]; [B]//// will jump out of this function with the value I got ??? [/B]
}
k++;
}
}
return null; [B]//????? [/B]
}
is "return array[k];" will exit the loop and also end the function ?
is "return null;" exist and I can use this "if (something != null)"
Thanks so much !!!