One last question and again thanks everyone for your help I'm just impatient and instead of waiting till Monday to hear back from my teacher I was hoping someone here might know. Is there a limitation of the number of integers C can display on one line? It seems that even though I want 4 rows it put a 2 more rows because it is not able to list 25 integers on one line. Or is this a limitation of visual studio? Thanks again. I put the full code in case anyone wants to see what it prints out.
Code:
void main()
{
int change;
int i = 0;
int j = 0;
int array [100] = {0};
for(i = 0; i<100; i++)
{
array[i] = rand();
}
change = changeA(array);
}
int changeA(int array[100])
{
int i = 0;
int j = 0;
int array2[4][25] = {0};
for(i = 0; i < 4; i++)
{
for(j = 0; j<24; j++)
{
array2[i][j] = array[i*25+j];
printf("%2d %2d", i,j);
}
}
printf("\n\n");
system("pause");
}