Question: 1) identify the errors in the following array declarations: A. const int SIZE = 10; B. int arr[SIZE] = {4, 6, 10, 5, 11, 9};

1) identify the errors in the following array declarations:
A. const int SIZE = 10;
B. int arr[SIZE] = {4, 6, 10, 5, 11, 9};
C. int arr[SIZE];
D. int arr[] = {6, 4, 7, 8, 3};
2) write a C++ code that declares an integer array that stores 10 values and reads the values from the keyboard.
3) identify what is wrong with the following:
int arr[9];
for (int i=1; i <= 9; i++)
{
arr[i] = 2 * i ;
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!