#include <stdio.h>
#include <stdlib.h>
int main(void) {
	// your code goes here
	int a = 1;
	int *ptr = &a;

	/*Print the address pointed to*/
	printf("pointing to address:  %p\n", ptr );
	
	/*Print the value in address*/
	printf("Value:  %d\n", *ptr );
	
	/*Print ptr's addressf*/
	printf("Value:  %p\n", &ptr );
	
	*ptr = 5;
	printf("Value:  %d\n", a );
	
	ptr = NULL;
	
	// ERROR
	/*Print the value pointed to by ptr*/
	// printf("Value:  %d\n", *ptr );
	
	a = 2;
	printf("Value:  %d\n", a );
	printf("Value:  %d\n", sizeof(int) );
	return EXIT_SUCCESS;
}
