What are the values in arrays a, b, and c after the followingcode executes (list all of the elements of the arrays)?
double[] a = new double[4];
double[] b = {6,4,2};
a[a.length-1] = b[b.length-1];
double[] c = b;
c[0] = -1;
b[1] = c[2];
c = a;
c[0] = -2;
a[1] = c[3];
Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!
(Save $1 )
One time Pay
(Save $5 )
Billed Monthly
*First month only
You can see the logs in the Dashboard.