It looks like you're new here. If you want to get involved, click one of these buttons!
my question might be quite simple, but I'm stuck and I can't go on. I'm trying to do a C program that determines the maxim value of an array inserted by a user, until here it's not difficult. The thing is that I'd like to print also the position of the maximum, but not only the position at which it occurs the first time, but all the position. That's basically my problem, I don't really know how to save the position. I'm using a "for loop' in order to determine the maximum and also the position, but by doing this also the positions of the previous maxima are saved, so then and the end I get a wrong output.
I hope my problem is clear :P