Let f be the following function: int f(char *s, char *t) { …
Let f be the following function: int f(char *s, char *t) { char *p1, *p2; for(p1 = s, p2 = t; *p1 != ‘\0’&& *p2 != ‘\0’; p1++, p2++){ if (*p1 == *p2) break; } return p1 -s; } What is the return value of f(“accd”, “dacd”)?
Read Details