Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUST

declare an array with signle value Rust

fn main() {
  let numbers: [u32; 5] = [0; 5];

  println!("{:?}", numbers); // returns [0, 0, 0, 0, 0]
}
 
PREVIOUS NEXT
Tagged: #declare #array #signle #Rust
ADD COMMENT
Topic
Name
2+8 =