On Thu, 8 Feb 2018 16:45:18 +0000, Barkow, Eileen wrote:
>Thank you Charles and Seymore. I thought that the problem had something to do
>with adding to pointers but
>I could not find any doc about it in the manuals.
>
In fact, subscripting is defined in terms of addition and dereferencing. So:
Array[ index ] means *( Array + index )
Since addition is commutative, this is entirely equivalent to *( index + Array )
so, index[ Array ].
Or, an outrageous example:
"wombat"[ 3 ] means the same as 3[ "wombat" ] -- both mean 'b'.
Don't you ever dare code that!
>I am still not sure that I understand how to fix it but I will try based on
>your info.
-- gil
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN