main()
{
	int i=3;
	int *j;
	int **k;
	clrscr();
	j=&i;
	k=&j;
	printf("\n address of i=%u",&i);
	printf("\t address of i=%u",j);
	printf("\t address of i=%u",*k);
	printf("\t address of j=%u",&j);
	printf("\t address of j=%u",k);
	printf("\t address of k=%u",&k);
	printf("\n value of j= %u",j);
	printf("\t value of k= %u",k);
	printf("\t value of i= %d",i);
	printf("\t value of i= %d",*(&i));
	printf("\t value of i= %d",*j);
	printf("\n value of i= %d",**k);

	getch();
}
/* output: address of i=65524	address of i=65524  address of i=65524 address of j=65522
	   address of j=65522   address of k=65520
	   value of j=65524	value of k=65522    value of i=3      value of i= 3       value of i= 3
	   value of i= 3
*/