logo

Crowdly

Trace the following code, what is the output? int a[] = new int[10]; for(in...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Trace the following code, what is the output?

int a[] = new int[10];

for(int i = a.length-1; i >= 0; i-=2) {

    a[i] += i ;

    System.out.println(a[i]);

}

More questions like this

Want instant access to all verified answers on moodle.polytechnic.bh?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!