int a[] = {10,20};
int b[] {30, 40};
a=b;
a[0]=100;
for(int i=0;i<b.length; i++)
System.out.print(b[i]+" ");
Answers
Answered by
0
Question:
int a[] = {10,20};
int b[] = {30,40};
a=b;
a[0]=100;
for(int i=0;i<b.length; i++)
System.out.print(b[i]+" ");
Output:
100 40
Similar questions