c how to get a string from user code example Example: read string c char name[20]; scanf("%s", name);