The following is the documentation for structural operators.
Syntax: x = a
Description: Sets x to the value of a. Also called a dereference, as a variable technically is a reference to a piece of memory.
Exceptions:
Relaxations:
Syntax: x = a.b
Description: Sets x to the value of element b in a. a is a variable of a structural type. The structural type has an element b.
For more information on structures, see structures.
Syntax: x = a[b]
Description: Sets x to the (b+1)
'th element of a. a is a variable of array type. The first index of an array is 0.
Exceptions:
Relaxations:
Syntax: x = a.length
or x = |a|
Description: Sets x to the length of a. a is a variable of array type.
Syntax: x = new a
Description: Sets x to a new unassigned variable of type a. a must be a type descriptor.
Exceptions:
Relaxations:
Syntax: delete a
Description: Unallocates variable a.
Exceptions:
Relaxations:
We would be more than happy to help you. Our opening hours are 9–15 (CET).
📞 (+47) 93 68 22 77
Nils Bays vei 50, 0876 Oslo, Norway