See
http://www.cplusplus.com/reference/cstdio/scanf/[
^]. The description for the format specifier
c
states that:
The next character. If a width other than 1 is specified, the function reads exactly width characters and stores them in the successive locations of the array passed as argument.
(Emphasis added)
In other words, rather than passing a variable (or array element) of type
char
, you should pass a variable of type array of
char
to
scanf
, like this:
scanf("%c", wortliste[i]+y);
Of course, you might as well replace the inner loop by reading all 10 characters at once, using the width specifier:
scanf("%10c", wortliste[i]);