ok i guess i need to learn the use of (parenthesis) when using pointers. I dont quite understand the use of "i". Where or when would i have an example as such?
I had a real hard time with pointers when I was learning them too. If this makes any more sense I'm happy to help.
1 2 3 4 5 6 7
int age[6] = {15, 21, 30, 28, 24, 19};
int * pointer_to_age=&age[5];
/* this is the same as
int * pointer_to_age;
pointer_to_age=&age[5]; */
cout<<*pointer_to_age;
/* same as cout<<age[5];*/
This seems like it would be an easier way to grasp the concept from my perspective.