Print the output of the following code. int ar[]={12,34,56,78}; int x,y,i; x=ar[2]; y-ar[ar.length-1]; ar[0]=y; ar[3]=x; for(i=0;i<4;i++)​

Answers 2

Answer:

Print the output of the following code. int ar[]={12,34,56,78};

int x,y,i;

x=ar[2];

y-ar[ar.length-1];

ar[0]=y;

ar[3]=x;

for(i=0;i<4;i++)

Explanation:

This is Java language i think arrays problem

The output will be [ 23,45,67,89 ] Confirm nhi h..run kra k check krlena pls

If you know the answer add it here!

Can't find the answer?

Log in with Google

or

Forgot your password?

I don't have an account, and I want to Register

Choose a language and a region
How much to ban the user?
1 hour 1 day 100 years