I don't know what is wrong with the following code. Maybe scanf_s won't scan the string name.
int main(void)
{
    char *name[20]; 
    printf("What is your name>");
    scanf_s("%s", name);
    printf("Your name is %s\n", name);
    return 0;
}
I changed it but it still does not work:
char *name[20]; 
{
    printf("What is your name>");
    scanf_s("%19s", name);
    printf("Your name is %s\n", name);
    return 0;
}
Yes the following works thanks!!!!!!
int main(void) 
{
    char *name[20]; 
    printf("What is your name>");
    scanf_s("%s", name, 20);
    printf("Your name is %s\n", name);
    return 0;
}
 
     
     
     
    