hi

i need a help in a code..

Code requirement is:-

FInd most occuring element in an array..

Say i have an array {1,2,4,4,4,5,1}
answer should be 4.....

Code should be in C language......

Have you tried anything at all? Post some code first, (an honest attempt - not just something thrown together) as nobody wants to do all your work for you.

sort the array.
And from there see which value occurs the most.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.