Find the error(s) in each of the following statements:
a) Assume that: int a[ 3 ];
cout << a[ 1 ] << " " << a[ 2 ] << " " << a[ 3 ] << endl;
b) double f[ 3 ] = { 1.1, 10.01, 100.001, 1000.0001 };
c) Assume that: double d[ 2 ][ 10 ];
d[ 1, 9 ] = 2.345;
a) ```
a[ 3 ] is not a valid location in the array. a[ 2 ] is the last valid location.
```
b) ```
Too many initializers in the initializer list. Only 1, 2, or 3 values may be provided in the initializer list.
```
c) Incorrect syntax array element access. d[ 1 ][ 9 ] is the correct syntax.
You might also like to view...
If you are printing on a networked printer, your print job is sent to a print ________
Fill in the blank(s) with correct word
How do you insert into Word an entire PowerPoint slide--including background graphics?
A) The only way is to copy each slide component individually. B) Background graphics in PowerPoint cannot be transferred to Word. C) Export the slide in PowerPoint in JPEG format. D) Export the slide in PowerPoint in MPEG format.