:devil:im stuck in the memory problem

1,
char string[10];
while (fgets(string, 10, stdin) != NULL)
{
//printf string

// printf string[7]