0
Follow
2
View

Problem using C. Program works then acts differently for unknown reason

cxandcf 注册会员
2023-01-25 12:35

here you have created zero size arrays

char letters[] = {};
char word[] = {};

you need to make them larger. I guess you need

char letters[26] = {};
char word[50] = {};

not quite sure what max size you need tho