#include<stdio.h>
int main(){
int number=50;
int *pointer;
pointer=&number;/*stores the address of number variable*/
printf("Address of p variable is %x \n",pointer); /*p contains the address of the number*/
/*therefore printing p gives the address of number.*/
printf("Value of p variable is %d \n",*pointer); /*As we know that *
is used to dereference a pointer therefore if we print *p,
we will get the value stored at the address contained by p.*/
}
To embed this program on your website, copy the following code and paste it into your website's HTML: