Question: int array 1 [ ] = { 5 , 1 0 , 1 5 , 2 0 , 2 5 } ; int array 2

int array1[]={5,10,15,20,25};
int array2[]={100,200,300,400,500};
array2= array1;
for(int i =0; i < array2.length; i++){
array2[i]= array2[i]*5;
}
What are the elements for the array1 after the execution of the previous code snippet?
a{5,10,15,20,25}
b{100,200,300,400,500}
c{25,50,75,100,125,}
d{500,1000,1500,2000,2500}

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