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), 22.06.2019 20:00
Distiguish between the benefits of traditional banking and the benefits of online banking
Answers: 2
question
Advanced Placement (AP), 23.06.2019 11:20
I’ll give you free brainliest + free points if you answer this correctly the most common cause of a stuck accelerator is the a. engine b. steering wheel c. brakes d. floor mat
Answers: 1
question
Advanced Placement (AP), 23.06.2019 12:00
Carrie received a w-2 form, 1099-misc, and a 1099-int. what is most likely true about carrie?
Answers: 1
question
Advanced Placement (AP), 23.06.2019 16:30
During adolescence, most people develop a greater sense of independence a. true b. false
Answers: 2
You know the right answer?
A two-dimensional array myArray is to be created with the following contents. {{0, 0, 3},
Questions
question
Geography, 27.09.2019 08:30