#include <stdio.h>
int main()
{
int *p;
int a = 10;
/* Assigning the address of variable a to the pointer
* p. The p can hold the address of a because a is
* an integer type variable.
*/
p= &a;
printf("Value of variable a is: %d", var);
printf("\nValue of variable a is: %d", *p);
printf("\nAddress of variable a is: %p", &var);
printf("\nAddress of variable a is: %p", p);
printf("\nAddress of pointer p is: %p", &p);
return 0;
}