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

	}
}
/* output: element=24 at 65514
	   element=34 at 65516
	   element=12 at 65518
	   element=44 at 65520
	   element=56 at 65522
	   element=17 at 65524

Hint: Address values are depends upon the memory
*/