NXC
Version 1.2.1 r5
|
Variable declaration, which has already been discussed, is one type of statement.
Its purpose is to declare a local variable (with optional initialization) for use within the code block. The syntax for a variable declaration is shown below.
Here arg_type must be one of the types supported by NXC. Following the type are variable names, which must be a comma-separated list of identifiers with optional initial values as shown in the code fragment below.
Arrays of variables may also be declared:
You can also define variables using user-defined aggregate structure types.