Input
Output
#include<stdio.h> void main(){ int a=10; int *p; p=&a; /* store address of a variable in pointer variable*/ printf("Address of a variable is %x \n",&a); printf("Address of p variable is %x \n",p); /* access the value using the pointer */ printf("Value of *p variable is %d\n", *p ); }