Write a program to print all the duplicate elements in an array.
Sample Input:
6
1 2 3 4 2 4 5
Sample Output:
Answers
Answered by
3
Answer:
int arr[] = {1, 2, 3, 4, 2, 7, 8, 8, 3}; //Calculate length of array arr. int length = sizeof(arr)/sizeof(arr[0]); printf("Duplicate elements in given array: \n");
Step-by-step explanation:
hope it's help u
Similar questions