Solved

What Would Be the Results After the Following Code Was

Question 16

Multiple Choice

What would be the results after the following code was executed? int[] x = {23, 55, 83, 19};
Int[] y = {36, 78, 12, 24};
For(int a = 0; a < x.length; a++)
{
X[a] = y[a];
Y[a] = x[a];
}


A) x[] = {36, 78, 12, 24} and y[] = {23, 55, 83, 19}
B) x[] = {36, 78, 12, 24} and y[] = {36, 78, 12, 24}
C) x[] = {23, 55, 83, 19} and y[] = {23, 55, 83, 19}
D) This is a compilation error

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions