Arrays are adjacent chunks of memory of the same size that allow convenient indexing. They are defined as follows.
u08 myarray[5]; // define an array of 5 unsigned 8-bit integers
u08 myarray2[3] = {10, 12, 18}; // decfine an array of 3 unsigned 8-bit integers
// and initialize their values to 10, 12 and 18
Arrays can be accessed for assignment or use in expressions with square brackets as well. Note that array indices begin at 0:
myarray2[0] = 11; // assign the value 11 to the first element of the array myarray2
myarray2[1] = myarray[0]; // assign the value of the first element of myarray
// to the second element of myarray2