#include <cstdlib>
#include <iostream>

using namespace std;

int main(int argc, char *argv[])
{
    int a;
    int b;
    int c;
    int *p;
    
    p= &c;
    a= 8;
    b= 10;
    c= 12;
    
    cout << &a << " " << &b << " " << &c << endl;

    cout << p[0] << " "  << p[1] << " " << p[2] << endl;    
    
    system("PAUSE");
    return EXIT_SUCCESS;
}
