Help me in solving CLB058 problem

My issue

why is char x[10] is taken?

My code

#include <stdio.h>

int main() {

  char x[10];
  scanf("%s", x);
  printf("Hello %s",x);

  return 0;
}

Learning course: Learn C
Problem Link: CodeChef: Practical coding for everyone

@vennelat06
You specify any value within the brackets such that it is greater than the length of the string.
example char x[6];

use directly gets to input the string
eg-:gets(x);
use directly puts to print string
eg-:puts(x);
ex-:
char x[20];
gets(x);
printf(“Hello”);
printf(" ");
puts(x);