scanf is dangerous.
Your program can be overflowed and this way you can arrange, without even knowing, a really big mess.
As Aia said, use fgets.
fgets works this way.
fgets(var, maximumNum, stdin); // This is an example how to get the user's input;
EDIT: Ahh! fgets & fputs works only for strings.
printf("Enter your name please:\n");
fgets(name, 10, stdin);
printf("%s", name); // or fputs(name, stdout); or many other ways, lol
and just for the record, gets is also dangerous.