Hi
I have this very simple program :
After I run it, and after I type in some name and press 'Enter', M/Windows return error:Code:#include <stdio.h>
main(){
char name;
printf("what is your name?");
scanf("%s",&name);
printf("Your name is %s",name);
}
"name.exe has encountered a problem and needs to close. We are sorry for the inconvenience."
The filename is name.exe. What can be the problem? And how should I solve it? Thanks for your kind help.
