While leaning Rust, I see the following code.
let arr = &[0; 5]; arr
- Why can we use
&before an array in the example above but not if I change
- What do we use
&[0; 5]instead of
[0; 5]? What is the advantage of the first way?