array in Rust

The features of an array are as listed below −
* An array declaration allocates sequential memory blocks.
* Arrays are static. This means that an array once initialized cannot be resized.
* Each memory block represents an array element.
* Array elements are identified by a unique integer called the subscript/ index of the element.
* Populating the array elements is known as array initialization.
* Array element values can be updated or modified but cannot be deleted.
<pre><code>
fn main(){
   let arr:[i32;4] = [10,20,30,40];
   println!("array is {:?}",arr);
   println!("array size is :{}",arr.len());
}
</code></pre>