Find the error(s) in each of the following statements:
```
a) Assume that a is an array of three ints.
cout << a[1] << " " << a[2] << " " << a[3] << endl;
b) array
c) Assume that d is an array of doubles with two rows and 10 columns.
```
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.
d[1, 9] = 2.345;
c) Incorrect syntax array element access. d[1][9] is the correct syntax.
You might also like to view...
Queries are a permanent part of the database and can be reused
Indicate whether the statement is true or false
There are two broad categories of thread implementation: user-level threads (ULTs) and ________.
Fill in the blank(s) with the appropriate word(s).