Jump to content

Variable-length array

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Celi0r (talk | contribs) at 11:58, 22 October 2007 (Created page with 'In programming, a variable length array (VLA) is an array of automatic storage duration whose length is determined at run time. Some programming languages that...'). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

In programming, a variable length array (VLA) is an array of automatic storage duration whose length is determined at run time.

Some programming languages that support VLAs are C (added in C99), C++, C#.

Example of a VLA

x = random()
array[x]