fn main() { let mut x = [1,2,3]; println!("{}",x[0]); x = [4,5,6]; println!("{}",x[0]); x[0] = 10; println!("{}",x[0]); }
To embed this project on your website, copy the following code and paste it into your website's HTML: