Be concise.
Be useful.
All contributions dictatorially edited by webmasters to match personal tastes.
Please do not paste any copyright violating resource.
Please try to avoid dependencies to third-party libraries and frameworks.
integer, dimension(:), allocatable :: a allocate (a(n))
a := make([]T, n)
var a: array of some_type; ... SetLength(a, n); ...
{ my @a = (undef) x $n; # scope ends at closing brace }
def func(): a = [0] * n # local variable automatically deallocated at end of function return
a = Array.new(n)
let a = vec![0; n];