// pointer_02.cpp -- initialize a pointer
#include <iostream>
int main()
{
    using namespace std;
    int chickens = 5;
    // declaring a pointer and assigning it an address
    // NOTE! this assigns 'pt' the address, not '*pt'
    int * pt = &chickens;

    cout << "Value of chickens = " << chickens
         << "; Address of chickens = " << &chickens << endl;
    cout << "Value of *pt = " << *pt
         << "; Value of pt = " << pt << endl;
}
