Write a program to find the number of distinct elements in a unsorted array in c
Answers
Answered by
0
Answer:given under
Explanation:Input : arr[] = {10, 20, 20, 10, 30, 10}
Output : 3
There are three distinct elements 10, 20 and 30.
Input : arr[] = {10, 20, 20, 10, 20}
Output : 2
Similar questions
Hindi,
6 months ago