PLEASE WRITE THIS IN C Please read the following: Has to have the two functions as stated below, and has to use pointer notation! Include two functions in your program, one which demonstrates the functionality using pointer notation and one which demonstrates the functionality using array indexing. The function prototypes are below: void copyArrayIndexWay(char * const newArray1, const char * const originalArray1); void copyPointerWay(char *newArray2, const char *originalArray2); char originalArray1[] ="COMP10120"; char originalArray2[] = "COMP10110"; Include relevant print statements to explain the difference between the two functions and provide a nice output with the results..
PLEASE WRITE THIS IN C
Please read the following: Has to have the two functions as stated below, and has to use pointer notation!
Include two functions in your program, one which demonstrates the functionality using pointer notation and one which demonstrates the functionality using array indexing. The function prototypes are below:
void copyArrayIndexWay(char * const newArray1, const char * const originalArray1);
void copyPointerWay(char *newArray2, const char *originalArray2);
char originalArray1[] ="COMP10120";
char originalArray2[] = "COMP10110";
Include relevant print statements to explain the difference between the two functions and provide a nice output with the results..
Attached image of full question:
Step by step
Solved in 3 steps with 1 images