int main ()
{
int numbers[5];
int * p;
p = numbers; *p = 10;
p++; *p = 20;
........
ok so this is from the pointers section in the c++ manual from their website. I'm lost.
What is it incrementing in line 4 if p
is a reference to an array? Or is it even pointing to the array numbers
?
When would this ever be better than just reassigning the values in the array?