Index Notation - C Implementation Details

C Implementation Details

In the C programming language, we can write the above as *(base + i) (pointer form) or base (array indexing form), which is exactly equivalent because the C standard defines the array indexing form as a transformation to pointer form. Coincidentally, since pointer addition is commutative, this allows for obscure expressions such as 3 which is equivalent to base.

Read more about this topic:  Index Notation

Famous quotes containing the word details:

    Then he told the news media
    the strange details of his death
    and they hammered him up in the marketplace
    and sold him and sold him and sold him.
    My death the same.
    Anne Sexton (1928–1974)