Here is my code

void tabulate(void)
        for (int i = 0; i < candidate_count; i++)
        if (strcmp(candidates[preferences[i][0]].name, candidates[i].name) == 0)

I have just started working on Tabulate and written this so far.

Now I only need to figure out a way to find the candidate with the least votes right? So the two nested loops technique which compares entries might be a good choice right?

Is the code I have written so far correct?

You must log in to answer this question.

Browse other questions tagged .