What will be the output of the following program?
class array_output 
{
public static void main(String args[])
{
int array_variable [] = new int[10];
for (int i = 0; i 10; ++i) {
array_variable[i] = i/2;
array_variable[i]++;
System.out.print(array_variable[i] + " ");
i++;
}
}
}

Posted on by