Question: 38. What do the following statements do? double[] array; array = new double[14]; a. Declare but do not create a double array. b. Create a
38. What do the following statements do?
double[] array;
array = new double[14];
a. Declare but do not create a double array.
b. Create a double array containing 14 elements.
c. Create a double array containing 13 elements.
d. Create a double array containing 15 elements.
39. Which of the following initializers lists would correctly set the elements of array n?
a. int n[5] = {1; 2 ; 3; 4; 5};
b. array n[int] = {1, 2, 3, 4, 5};
c. int n = new int(1, 2, 3, 4, 5);
d. int[] n = {1, 2, 3, 4, 5};
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
