int a; cout << "A pointer to a is " << & a << endl;
type * identifier
type * identifier, * identifier, * identifier
int * pointerToA = 0; int * secondPtrToA = NULL; int * thirdPtrToA = nullptr;
cout << "*pointerToA = " << *pointerToA << endl; *pointerToA = 99 cout << "*pointerToA = " << *pointerToA << endl; cout << "a = " << a << endl;
struct SimpleT{
int one;
string two;
};
...
SimpleT s1;
SimpleT *s1Ptr = nullptr;
s1Ptr = & s1;
cout << "The name is " << s1Ptr->two << endl;
s1Ptr->two = "This is changed ";