What is the output of the following?
class GFG
{
public static void main (String[] args)
{
int[] arr = new int[2];
arr[0] = 10;
arr[1] = 20;
for (int i = 0; i <= arr.length; i++)
System.out.println(arr[i]);
}
}
Answers
Answered by
25
Answer:
what do u wanted to ask broo
Similar questions
Math,
2 months ago
Economy,
2 months ago
Math,
2 months ago
Social Sciences,
5 months ago
Accountancy,
10 months ago
Physics,
10 months ago
Chemistry,
10 months ago