/* Read a text from KB and display on the screen using pointer */
#include< stdio.h>
#include< conio.h>
void main()
{
	char a[100],*pa;
	pa=&a[0];   /* OR can be written as   pa=a */
	clrscr();
	for(;(*pa=getchar())!='$';pa++);
	*pa='\0';
	for(pa=a;*pa;pa++)	/* *pa means *pa!='\0'	*/
	putchar (*pa);
	getch();
}
/*
	input : nickolas$
	output:	nickolas
*/