Question: C++ Given the code below, write the body of the two functions copyl using array notation and py2 using pointer notation. #include #define SIZE 10

 C++ Given the code below, write the body of the two C++

Given the code below, write the body of the two functions copyl using array notation and py2 using pointer notation. #include #define SIZE 10 void copy1(char * const s1, const char * const S2);//prototype void copy2(char *s1, const char *s2);//prototype int main (void) {char string1[SIZE];//create array string1 char *string2 = "Hello";//create a pointer to a string copy1(string1, string2); printf("string1 = %s ", string1) char string3[SIZE];//create array string3 char string4[] = "Good Bye";//Create an array containing a string copy2(string3, string4); printf("string3 = %s ", string3);}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!