According to classical math:
Array[n]
refers to the nth element of the array.
To "accept the address" of the nth element, the & or address of operator is used:
&Array[n]
To clear any suspected ambiguities, parentheses are added:
&(Array[n])
For the reader reading from left to right, this expression matters:
Returns the address of an element at position 'n'
Insurance may have been designed as protection against old failed compilers.
Some people find this more readable than:
Array + n
Sorry, but I'm old school and prefer to use the '&' versions, paren or not. I will spend time making the code easier to read than worrying about which version takes more time to compile or which version is more efficient.
In a clear section with comments, the code has a higher return on investment than the code section, which is optimized for efficiency or uses sections of the language that are not appropriate for language lawyers.
source share