Identify the errors; assume in (b) and (c) that s2 has been declared and assigned a string:
a.
char* f(char *s) { char ch = 'A'; return &ch;}b.
char *s1;strcpy(s1,s2);c.
char *s1;s1 = new char[strlen(s2)];strcpy(s1,s2);
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.