in C is:
*(array) equivalent to array[0]?
Therefore is
*(array+2) equivalent to array[2]?
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]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With