C program to print unique elements in array

C program to print unique elements in array

Output:

Enter the size of the array: 16
Enter the elements of the array:
1 1 2 3 2 2 3 2 4 2 2 4 3 2 1 5
The unique elements in the array are:
1 2 3 4 5

Implementation: