455 views
0 votes
0 votes

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

 

1 Answer

0 votes
0 votes
False,False

Related questions

0 votes
0 votes
1 answer
1
Dknights asked Feb 1, 2023
403 views
is it ok to mark both and at least option in the case of MSQ, on my view in this question first option will always be true so marking the second is correct?
0 votes
0 votes
0 answers
2
Dknights asked Jan 7, 2023
287 views
0 votes
0 votes
0 answers
3
BHOJARAM asked Jan 7, 2019
293 views
0 votes
0 votes
0 answers
4
BHOJARAM asked Jan 2, 2019
292 views
How many binary min heap possible with element(1,2,3,4,5,6,7)?