Write a C function that removes duplicate elements from anarray, by copying the non-duplicate values to a second array, i.e.only the first occurrence of any value should be copied.
Place your answer in a file namedremove_duplicates_function.c
Your function should take three parameters: the length of sourcearray, the source array itself, and the destination array. It musthave this prototype:
int remove_duplicates(int length, int source[length], int destination[length]);
Your function should return a single integer: the number ofelements copied to the destination array.
For example if the source array contains these8 elements:
3, 1, 4, 1, 5, 9
Your function should copy these 5 values to thedestination array:
3, 1, 4,
OR
OR