Inside <code>for (int x : arr) x = 0;</code>
- A
Sets all array elements to 0
- B
Throws exception
- C
Compile error
- Dcheck_circle
Sets local copy x to 0; array unchanged
Explanation
<code>x</code> is a local copy of each element (for primitives); modification doesn't affect array.