Can somebody explian to me whty this function will
return 7 ?
If we were to make the following call to foo what value would it return?Code:int foo(char *s1, char *s2) { int c=0, s, p, found; for (s=0; s1[s] != '\0'; s++) { for (p=0, found=0; s2[p] != '\0'; p++) { if (s2[p] == s1[s]) { found = 1; break; } } if (!found) c++; } return c; }
foo(“Asia Pacific”, “aeiou”);