I'm getting an error from comparing a character pointer and an integer.

Heres some code.


char *scan_array = &word[0];
char letter;

while(scan_array != letter) // This is the line with the error.


I dont understand why I'm getting this error when 'letter' is a character.