Programming in C

 Pointer Example-1:

#include<stdio.h>

void main()
{
int a,b, *p, *q;
printf("\n enter value of a: ");
scanf("%d",&a);
printf("\n enter value of b: ");
scanf("%d",&b);
printf("\n the value of a is= %d",a);
p=&a;
printf("\n the address of a is, p = %d",p);
printf("\n the value of b is= %d",b);
q=&b;
printf("\n the address of b is, q = %d",q);
}