Question 1. Write the string copy and string concatenation functions as
a. char *strcpy(const char *string1,const char *string2) -- Copy string2 to stringl by using pointer arithmetic.
char *strncat(const char *string1, char *string2, int n) -- Append n characters from string2 to stringl by using pointer arithmetic
Question 2. Write two versions of the string comparison function strncmp() as int strncmp(const char *string1, char *string2, int n) -- Compare first n characters of two strings.
The first version should use array subscripting, and the second version should use pointer arithmetic
Can you answer this program and function.