warning C4047: '=' : 'char' differs in levels of indirection from 'char [1]'

Write your question here.
I'm keep getting this warning on line lettersGuessed:
warning C4047: '=' : 'char' differs in levels of indirection from 'char [1]'
My program is quit long so I could not show everything. But the problem is with lettersGuessed. I'm not quiet sure how to fix this, any solutions?

1
2
3
4
5
6
7
8
9
10
11
int main(void) {
	char dash[size];
	char underscore[size];
	char underscore2[size];
	char guess = '?';
	char lettersGuessed[size] = "";


for (i = 0; i < (guess_num + 1); i++) {
lettersGuessed[i] = "";
}
lettersGuessed[i] is a char, but "" is a c-string. To fix, do

lettersGuessed[i] = '\0';
Topic archived. No new replies allowed.