Code:
$ gcc test.c
test.c: In function ‘main’:
test.c:10:1: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘int’ [-Wformat]
Do you now know why? Enable all warnings in your compiler.
By the way, you are not terminating the string with a NUL byte.
Also, use correct indentation, proper prototype of main is
int main(void), and it should
return 0; at the end.