#include <iostream.h>
#include <iomanip.h>
int main()
{
	int list[4]={10, 20, 30, 40},
		*p,
		k;
		
	p = list;	//NOTE:  list is a constant pointer to list[0]
	
	for (k=0; k<4; k++)
	{
		//NOTE:  The setw() ostream manipulator is NOT persistent!
		cout << setw(5) << list[k] << endl;
		cout << setw(5) << *(p+k) << endl;
		cout << setw(5) << p[k] << "\n\n";
	}
	
	return 0;
}

	
