Thanks, all. What I'm working on is a multi-node system where each node sends between 2 and 12 bytes of data. I want to receive them and stick the data into an array of variables by using addresses rather than variable names.
But I want to retrieve the data using variable names that point into the proper place in the array. I'm sure there will be a jillion more questions, unless this is answered already. I've done some searches and haven't found any help.
Dr Quark
(my problem is, I'm an old assembly programmer and to me a number is just a number--no attributes except length)
Exactly, BUT, I don't want the code required to build the right indexes to get so complicated that it can't be maintained. I'll post an example later--off to a wedding.
Like the difference between 5pm and 6pm isn't anything-pm, it is 1 hour.
Use named constants to refer to positions in the array. You can do math with constants. For a system with a fixed-length header and variable-length data, the first data item is receivedArray[HEADER_LENGTH + 1]. The optimising compiler will do the maths at compile-time so the Arduino chip doesn't do the addition. Accessing that variable will take the same number of machine instructions (and clock cycles) as if you had named it directly.