Up: Byte Data Examples [Index]
For a byte array:
data b;
the
b[0], b[1], b[-1], b[-2]
are the first, second, last and before last bytes.
b = "X0X0";
sets b as the string X0X0.
For a second byte array:
data c;
the assignment:
c = b;
sets c as another reference to the object pointed by b.
The arrays may be modified as:
b[1] = 0; b[3] = abs(-2); b[1] = b[3] = 'o';