Code:
#include<stdio.h>
#include<conio.h>
main()
{
int i;
char *s;
scanf("%s",&s);
printf("%s",s);
getch();
}
i ran this code on dev c++ in windows xp...
xp shows a error:
" ....has encountered a problem and needs to close.
We are sorry for the inconvenience."

why does this happen??
and how to receive char pointers as input??