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 07:00
Ideally, the backrest is tilted back slightly, so when you turn the wheel your shoulders are the seat.
Answers: 2
question
Advanced Placement (AP), 25.06.2019 09:30
Why does the blending of many different diciplines present both challenges and opportunities to enviromental scientist?
Answers: 1
question
Advanced Placement (AP), 27.06.2019 15:30
Asocial class is a category of people who share similarities in which attribute? a. intelligence b.religion c. age , race and gender d wealth , power , and prestige
Answers: 2
question
Advanced Placement (AP), 28.06.2019 01:30
Amedical coder in a cardiologist's office is preparing a report about clinical services provided to a patient. the report will be sent to the patient's insurance company. the services included an ekg to record the heart beat and an echocardiogram to take pictures of the heart. for every service, the coder will record a(n) procedure code. definition code. who code. icd-o-3 code.
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, 26.02.2020 00:20
question
Mathematics, 26.02.2020 00:20
Questions on the website: 13722367