// Array of pointers
#include <iostream>
using namespace std;
int main()
{
        int a = 3, b = 6, *p[2];
        // p is an array of pointers
        p[0] = &a;
        p[1] = &b;
        cout << *p[0] << endl;
        cout << *p[1] << endl;
	// You can also print the above as follows:
        for (int i = 0; i < 2; i++)
                cout << *p[i] << endl;
        return 0;
}

