That's the way I always wrote it, since I could do the first three in my head, then the remaining 7 are calculated below at runtime, just like the C version does for all values. It adds to runtime, but is negligible for such a small array.
That's the way I always wrote it, since I could do the first three in my head, then the remaining 7 are calculated below at runtime, just like the C version does for all values. It adds to runtime, but is negligible for such a small array.