Problems with input and output of language C in Visual Studio

I would like help! Below I have a code
In C the problem is simple: if I leave it as it is, the name received on the screen is not printed, but if I scanf_s for scanf it will work normally.
Does anyone know the reason?

lock in

lock in

lock in

int main (void)
{
Character name (20);
int ru;

printf ("name:");
scanf_s ("% s", name);
printf (" n n");
printf ("% s", name);

}