No, they are not implemented differently. Both find elements with the same calculation: a[i]
is at address a + i*sizeof(a[0])
, also p[i]
is at address p + i*sizeof(p[0])
.
But, they are treated differently by the type system. C++ has typing information on arrays which can be seen…
Top comments (0)