Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started