If I make a function that returns more than 1 values to the same variable like in the example:
char *strstr(char *s1,char *s2)
{
int flag=1;
char i,j;
for(i=0;*s1;i++)
{
if(s1[i]==s2[0])
for(j=i;*s2;j++)
{
if(s1[j]!=s2[j])
flag=0;
}
}
return i;
return 0;
}
What will be the actual value returned by the function?Will the last returned value overlap the first returned value?