I need to use j as a counter and increment it at the same time the i increments. This code just keep on giving me random number for j.
int i, j; // counters
for (i=0, j=1; i<=LENGTH; i++, j++)
{
printf("Player %i "\n", j);
printf("Name:\t");
fgets(name[i], MAXLENGTH, stdin);
...
i = 0, j = 1is perfectly valid.for (i = 0, j = 1, k = 2; i < 10; i++, j++, k++)does exactly what one might expect.