#include<iostream.h>
int main()
 {      int j, limit;
	int * a;       // here we declare a as a 
	               // pointer to an integer
	limit = 10;
	a = new int[limit];  // here the memory for an
	                     // integer array of size 
			     // "limit" is allocated
	for (j = 1; j < limit; j++)
	{
		a[j] = 10*j;
	}
	for (j = 1; j < limit; j++)
	{
		cout << a[j] << endl;
	}
	for (j = 1; j < limit; j++)
	{
		cout << *(a+j) << endl;
	}
	delete [] a;  // here we delete array a
	return 0;
}

