Syntax help with 2D array

  • byte: The byte data type is an 8-bit signed two’s complement integer. It has a minimum value of -128 and a maximum value of 127 (inclusive). The byte data type can be useful for saving memory in large arrays, where the memory savings actually matters. They can also be used in place of int where their limits help to clarify your code; the fact that a variable’s range is limited can serve as a form of documentation.
2 Likes

Yes that is exactly why I am using the byte variable type. The final code is going to be used in a MIDI system where the maximum value I need to use is 127. So to check a valid value is being used all I need to do is check it is a positive number.