/* Programming to print a name in pointer array */
#include< stdio.h>
#include< conio.h>
void main()
{
	char name[]="nic";
	int i;
	i=0;
	clrscr();
	while(name[i])
	{                         /* all the names are print the same letter */
		printf("\n%c\t%c\t%c\t%c",name[i],*(name+i),*(i+name),i[name]);
		i++;
	}
	getch();
}
/*
	output:	n	n	n	n
		i	i	i	i
		c	c	c       c
*/