previous | index | next

Static vs. Dynamic Arrays

An array declaration such as:
  int v[10];
sets aside array space within the function in which it is declared at compile time.

Such an array is called a static array because it is allocated at compile time and lives for as long as the program runs.


previous | index | next