Question
How to declare a string variable in C?
Background
In my quest to learn the basics of c, I am trying to port on
char name[60]; scanf("%s", name);
Edit: restricted input length to 59 characters (plus terminating 0):
char name[60]; scanf("%59s", name);