Question: Which is valid syntax for defining an array of i32 values?

  1. Array::with_capacity(10)
  2. [i32]
  3. Array::new(10)
  4. [i32; 10]

Answer: The correct answer of the above question is Option D:[i32; 10]