Question: Array declarations and instantiations ( 1 D and 2 D ) Which of the following would correctly declare and instantiate an array of 5 floats?

Array declarations and instantiations (1D and 2D)
Which of the following would correctly declare and instantiate an array of 5 floats? Choose all that apply.
a) float[4] values = new float[4];
b) float[] values = new float[6];
c) float[] values = float[5];
d) float[6] values = new float[];
e) float[] values = new float[5];
f) float[5] values = new float[];
g) float[6] values = new float[6];
h) none of these
i) float[] values = float[6];
j) float[] values = new float[4];
k) float[5] values = new float[5];
l) float[] values = float[4];
m) float[4] values = new float[];

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!