/* Programming to print a string elements using pointer notation */
#include< stdio.h>
#include< conio.h>
void main()
{
	char name[]="nic";
	char *ptr;
	ptr=name;   /* store base address of string */
	clrscr();
	while(*ptr!='\0')
	{
		printf("%c",*ptr);
		ptr++;
	}
	getch();
}
/*
	output:	nic
*/