New answers tagged

0

winner_votes never changes, it is always 0. This line candidates[i].votes = winner_votes; changes all candidates' votes to winner_votes (which is always 0). Therefore the print loop will print all candidates.


Top 50 recent answers are included