subject

A two-dimensional array myArray is to be created with the following contents. {{0, 0, 3},

{0, 0, 0},

{7, 0, 0}}

Which of the following code segments can be used to correctly create and initialize myArray ?

I. int myArray[][] = new int[3][3];
myArray[0][2] = 3;
myArray[2][0] = 7;

II: int myArray[][] = new int[3][3];
myArray[0][2] = 7;
myArray[2][0] = 3;

III: int myArray[][] = {{0, 0, 3}, {0, 0, 0}, {7, 0, 0}};

A) I only.

B) II only.

C) III only.

D) I and III.

E) II and III.

ansver
Answers: 2

Another question on Advanced Placement (AP)

question
Advanced Placement (AP), 25.06.2019 21:00
Which of the following is an open question? "where are you from? " "when did you graduate from college? " "why did you leave your last job? " "do you have transportation to work? "
Answers: 1
question
Advanced Placement (AP), 26.06.2019 00:40
Lori attended a lecture about the sun, and the presenter had placed this image on the wall. which layer of the sun could this image be referring to?
Answers: 1
question
Advanced Placement (AP), 27.06.2019 00:30
Submitting the profile which includes sending a report to one college cost
Answers: 1
question
Advanced Placement (AP), 27.06.2019 08:50
Technician a says the harmonic balancer may be attached to the crankshaft using a woodruff key and center bolt. technician b says the harmonic balancer may be attached to the crankshaft using a square key and center bolt. who is correct? choose one answer. a. technician a b. technician b c. both technician a and technician b d. neither technician a nor technician b
Answers: 1
You know the right answer?
A two-dimensional array myArray is to be created with the following contents. {{0, 0, 3},
Questions
question
Mathematics, 23.04.2020 01:44
Questions on the website: 13722361