Liste des Groupes | Revenir à cl c |
On 2025-04-13, Michael S <already5chosen@yahoo.com> wrote:The funny thing is that in original C prefix form of [] indexing was
equivalent to the postfix form. May be, it still is in C23, I
didn't try to look in the docs or test.
Are you thinking of a[i] being *(a + i) being i[a] due to
commutativity?
That's really not a useful feature. Actually right down to a + i being
commutative when a is a pointer. It would be fine if only the
<pointer> + <integer> combination were allowed.
Les messages affichés proviennent d'usenet.