ANSI C (E. Balagurusamy) is the best book for study basics of C. Simple book with examples and explanations. Best book I seen in basics of C.
#include <stdio.h>
main()
{
char name[50];
printf("whats your name?");
scanf("%s", &name);
printf("Hello, Mr. %s how are you?", name);
getch();
}
Staff note: Edit your posts and use the code tags...