#include <stdio.h>

int main(void){
	
	int * x;
	int y = 5;
	x = &y;

	//now x and y are tied to the same memory address
	printf("x is %d and y is %d\n",x,y);
	
	//if we change y, does it affect x?
	y = 15;
	printf("x is %d and y is %d\n",x,y);

	//what about if we change x, does it affect y?
	x = 10;
	printf("x is %d and y is %d\n",x,y); 

	return 0;
}
