Solved

What Would Be the Result After the Following Code Is

Question 33

Multiple Choice

What would be the result after the following code is 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) Nothing. This is a compile error.

Correct Answer:

verifed

Verified

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

Related Questions