Question: Which XXX / YYY declare an array having MAX _ SIZE elements and initializes all elements with - 1 ? final int MAX _ SIZE

Which XXX / YYY declare an array having MAX_SIZE elements and initializes all elements with -1?
final int MAX_SIZE =4;
int[] myNumbers = new int[XXX];
int i;
for (i =0; i < YYY; ++i){
myNumbers[i]=-1;
}
Question 7Answer
a.
MAX_SIZE / MAX_SIZE
b.
MAX_SIZE -1/ MAX_SIZE -1
c.
MAX_SIZE -1/ MAX_SIZE
d.
MAX_SIZE / MAX_SIZE -1

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!