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:
printf("what is your 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.