- #1
Whovian
- 652
- 3
Code:
#include <stdio.h>
int main()
{
char name[256];
printf("What's your name?\n");
scanf("%s",name);
printf("Hello, %s%s",name,"!");
}
This only reads the first word of the name inputted. Is there any way to get a whole line?