Help me in solving CLB058 problem

My issue

why when declaring character x we put digit 10 in brackets?

My code

#include <stdio.h>

int main(void) {
    char x[10];
    scanf("%s", x);
    printf("Hello %s",x);
	// your code goes here
	return 0;
}


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

@nakshatrarane5
Its a syntax to declare array of character . instead of 10 u can use any number which will be the upperlimit of the string.