Show us your code
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
int main()
{
int *a;
int ar;
int i,n;
printf("How many");
scanf("%d",&n);
a=(int*)malloc(sizeof(int)*n);
*ar=(int*)malloc(sizeof(int)*n);
printf("Enter %d numbers\n",n);
for(i=0;i<n;i++)
{
scanf("%d",(a+i));
*(ar+i)=(a+i);//storing the address
}
printf("Traversing using pointer variable");
for(i=0;i<n;i++)
{
printf("Address of a[%d] is %d and value is %d\n",i,*(ar+i),(ar+i));
}
printf("\n");
printf("Traversing using original array");
for(i=0;i<n;i++)
{
printf("Address of a[%d] is %d and value is %d\n",i,a+i,*(a+i));
}
return 0;
}