Answer the following statements true (T) or false (F)
1. The amount of memory used by an array depends on the array's data type and the number of elements in the array.
2. An array initialization must be all on one line.
3. When you pass an array as an argument to a function, the function can modify the contents of the array.
4. C++ limits the number of array dimensions to two.
5. If you attempt to store data past an array's boundaries, it is guaranteed to cause a compiler error.
1. T
2. F
3. T
4. F
5. F
You might also like to view...
Which of the following array declarations are legal?
a. int array[10]; b. int size; cin >> size; int array[size]; c. int array[]={0,0,0}; d. const int size=9; int array[size]; e. All of the above f. All but C a. int array[10]; b. int size; cin >> size; int array[size]; c. int array[]={0,0,0}; d. const int size=9; int array[size]; e. All of the above f. All but C g. All but B
The three classes of languages discussed in the chapter are ___________ , ____________ and
Fill in the blank(s) with the appropriate word(s).