how to input a string as an array in c code example Example: read string c char name[20]; scanf("%s", name);