Limited access

Upgrade to access all content for this subject

Consider the following code segment.

int[] arr = new int[30];

for (int i = 0; i < arr.length; i+=2)
     arr[i] = i*3;

What is the value of arr[21] after the code segment has been executed?

A

0

B

3

C

21

D

42

E

63

Select an assignment template