What is wrong with the following code fragment?
Const int SIZE =5;
Float scores[SIZE];
Forint i=0; i<=SIZE;i++)
{
Cout << "Enter a score\n";
Cin >> scores[i];
}
A) Array indexes start at 1 not 0
B) Arrays must be integers
C) Array indexes must be less than the size of the array
D) Should be cin >> scores[0];
Correct Answer:
Verified
Q16: Arrays can be returned from a function.
Q17: If a function is expecting a pass
Q18: The following function will work with any
Q19: The indexed variables members) of an array
Q20: When you have a function that expects
Q22: What are the valid indexes for the
Q23: Given the following function definition, will repeated
Q24: If we want a search function to
Q25: In the expression
double score[10];
double is called the
Q26: Given an array of integers of size
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents