+ 3

Write a C program to find the total number of distinct elements in a sorted array?

It is purely related to arrays concept. For example 3 3 3 3 76 98 The answer must be 3. Please answer fast!

17th Nov 2018, 12:03 PM
SK Shravan
2 Réponses
+ 3
you must check on the same numbers with "if" and if number == number then return number
17th Nov 2018, 12:17 PM
_yaroslavv [online_everyday]
_yaroslavv [online_everyday] - avatar
0
Remember to post always your attempt or ask only for how does the work and not for a ready solution
17th Nov 2018, 12:57 PM
KrOW
KrOW - avatar