0

why use that ??

for (int i = 0; i < candidate_count; i++)
    {
        candidates[i].votes = 0;
    }
}
return 0;
0

That is initializing all the votes to 0 so that once your vote function runs, you can be sure that incrementing the vote count for a particular candidate will always start from zero.

| improve this answer | |

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .