Question: C language Let f be the following function: int f(char*s, char *t) { char *p1, p2 for(p1 = s; *p1 != '0'; p1++) for(p2 =
C language

Let f be the following function: int f(char*s, char *t) { char *p1, p2 for(p1 = s; *p1 != '\0'; p1++) for(p2 = t: *p2 != '\0'; p2++) if (*p1 == "p2) break; if(*p2 == '\0') break; } return p1 - S; } What is the return value of f("cdaceb", "bacd")
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
