Question: There are 2 problems with the code below, what are they? char* xpx(char* src){ char result[sizeof(src)]; strcpy(result, src); return result; }
There are 2 problems with the code below, what are they?
char* xpx(char* src){
char result[sizeof(src)];
strcpy(result, src);
return result;
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
