1.

What is the output of this program?

public class output
{
public static void main(String args[])
{
int array[] = new int[] {0 , 1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
int num = 10;
num = array[array[num] / 2];
System.out.println(array[num] / 2);
}
}

A. 0
B. 1
C. 2
D. 3
E. 4
Answer» D. 3


Discussion

No Comment Found

Related MCQs