Which of the following would be an appropriate loop header when reading data from a file to fill an array defined by:
float grades[MAX];
a) for (int i = 0; i < MAX; i++)
b) for (int i = 0; i < MAX –1; i++)
c) while (!fileIn.eof( ))
d) while (!fileIn.eof( ) && i < MAX)
d) while (!fileIn.eof( ) && i < MAX)
Computer Science & Information Technology