Some questions about pointers
here is my basic Idea of pointers from what I learned so far. Plz tell me if I am correct and the second part with the pCat is a little confusing.
Code:
int * pPoint = 5; // this deferences a pointer, assigning it 5.
cout << &pPoint; // shows the address of the pointer
//some other q's
int cat=5;
*pCat = &myAge;
cout << *pCat; //now does this return the address of the cat,
//or the value 5 which is stored in the address?
//also
cout << pCat; // what would that output?