#include <iostream>
using namespace std;

int main() {
	int  a[] = {9, 8, -5};
	int* p = &a[2]; // p has now address of element a[2] => p is pointer to a[2]
	
	//use *p to get the value p points to ('cout' is used to print something)
	cout << "element p points to " << *p << endl;
	
	cout << "p-a = " << (p-a) << "\n";
	return 0;
}