I am a beginner in programming and I have written the following code:

```
#include <stdio.h>

int main(void)
{
   char x[] = "",
        y[] = "",
        z[] = "";

   printf("Enter a string: ");
   scanf("%s", x);

   printf("Enter another string: ");
   scanf("%s", y);

   printf("Enter one more string: ");
   scanf("%s", z);

   printf("\n");
   printf("x is %s\n", x);
   printf("y is %s\n", y);
   printf("z is %s\n", z);

   getch();
   return 0;
}

```

When I enter "I" for x, "am" for y and "happy" for z, the result is like that:

```
x is ppy
y is appy
z is happy

```

Does anybody know what is the problem? Thanks you!