nope, b is the first element in the array, the brackets are doing nothing by the way, you can point to a position in the array
1 2 3 4 5
|
int array[5] ={1,2,12,4,4};
int *arraypointer = array [2] ;
cout<< *arraypointer; //outputs '12'
|
I remember trying to bend my head around pointers a few months ago, you know how to use them allready you just need to get used to them, if i had spent a few hours just pointing to things and popping them in arguments i would have learnt the faster than reading and asking about them.
For me it clicked when i realized this was possible:
1 2 3 4 5 6 7 8 9 10
|
int Number = 10;
int *NumberPointer = &Number;
int **NumberPointerPointer = &NumberPointer;
int ***NumberPointerPointerPointer = &NumberPointerPointer;
|
As pointless as that is XD, thas when i realized that int *something is making a
thing that points.
So i automatically clicked for all things that same moment.
Try to think of the arrays address in memory being pointed to, how you gonna refere to every part of the infomation in that address?
I think you might be better off refering to the address of an array rather than trying to point to a whole array, then when you advance theres vectors, you can point to a vector, its just like a more modern array :)