Leave a Reply 5

Your email address will not be published. Required fields are marked *


Snr DingDong

Snr DingDong

Answer is B

numbers = new int[4]; // points to a new array

this line passes a 4 element int array to the numbers reference variable.
At that line all elements are default and therefore as they are an int are 0.
So when you assign values to element 2 and 3. element 0 & 1 remain at an ints’ default which is 0.
so the array contains {0 , 0 , 30, 40}

jeronimo

jeronimo

YO CREIA QUE ERA LA C. PERO ES LA B !!