bool foo(char *s)
{ char c[ ]=”correspondence”;
int i=0,j=0;
While(s[i] && c[j])
{ if (s[i] ==c[j]) j++;
i++;
}
if(! c[j]) return true;
else return false;
}
The string ‘response’ and ‘credence' are passed to the above function too one by one and output is observed in each case. book data type return true or false