Question: Find all the off by one errors in the following code. #include 02 #include 03 #include 04 05 int main(void) { 06 char s1[]
Find all the off by one errors in the following code. #include 02 #include 03 #include 04 05 int main(void) { 06 char s1[] "012345678"; 07 char s2[] = "0123456789"; char *dest; 08 09 int i; 10 11 strcpy_s(s1, sizeof(s2), s2); 12 dest(char *)malloc(strlen(s1)); 13 for (i=1;i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
