#include< stdio.h >
#include< conio.h >
void main()
{
	int num[]={24,34,12,44,56,17};
	int i=0,*j;
	clrscr();
	j=&num[0];
	while(i<=5)
	{
		printf("\naddress=%u",&num[i]);
		printf("\telement=%d",*j);
		i++;
		j++; /* increment pointer to next location */

	}
	getch();
}
/* output: address=65514	element=24
	   address=65516	element=34
	   address=65518	element=12
	   address=65520	element=44
	   address=65522	element=56
	   address=65524	element=17