SPC Version 0.9.5
SPC also support arrays.
Arrays are declared the same way as ordinary variables, but with an open and close bracket following the variable name. Arrays must either have a non-empty size declaration or an initializer following the declaration.
To declare arrays with more than one dimension simply add more pairs of square brackets. The maximum number of dimensions supported in SPC is 4.
Arrays of up to two dimensions may be initialized at the point of declaration using the following syntax:
The elements of an array are identified by their position within the array (called an index). The first element has an index of 0, the second has index 1, and so on. For example:
SPC also supports specifying an initial size for both global and local arrays. The compiler automatically generates the required code to correctly initialize the array to zeros. If an array declaration includes both a size and a set of initial values the size is ignored in favor of the specified values.