Question: What would be the result after the following code is executed? int [ ] x = { 2 3 , 5 5 , 8 3

What would be the result after the following code is executed?
int []x={23,55,83,19};
int []y={36,78,12,24};
x=y;
y=x;
Select one:
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.
 What would be the result after the following code is executed?

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 Databases Questions!