What is the size of array defined below in bytes? int a[] = new int[100];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
0
Answer:
the size of array a is 400 bytes
&
the size of array arr is 8 bytes
Explanation:
hope it helps!
Similar questions