Computer Science, asked by samkhan3609, 1 year ago

Write a program to find the number of distinct elements in a unsorted array in c

Answers

Answered by chetan8144487556
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