thanks got the error, have to get value of 'n' before I declare the array. As 'n' initially has some garbage value.
Am I correct?
one more query in this -
this program gives the repeated digits of the array
how to refine this program in a sense i.e- repeated digits doesnt repeat in output?
It works fine but as you will see in the output that the digits which are repeated appear according to the no. of times they have appeared in the array. I just want to write the singular elements repeated.
the output repeats itself for every element that repeats itself as many times it in the array - any suggestions on this end?
suggestions?
Help me out fellows need to get it right ... am trying to do this without using pointers.... all the changes that I make fine tunes it but some other like When entering three similar numbers again it displays twice in fanal output...
What to do?