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:

    Anyone can see that to write Uncle Tom’s Cabin on the knee in the kitchen, with constant calls to cooking and other details of housework to punctuate the paragraphs, was a more difficult achievement than to write it at leisure in a quiet room.
    Anna Garlin Spencer (1851–1931)