arrays / pointers (C)

arrays, c, pointers

Solution

Yes, for instance:

given:

int a[10];

Then

*(a + 2)

is equivalent to

a[2]

and just for good measure.

a[2]

is equivalent to

2[a]

Problem

in C is: `*(array)` equivalent to `array[0]`? Therefore is `*(array+2)` equivalent to `array[2]`?

Original source