1A whole word is compared with one character
'a' is one character. word is a row of them. Compare one item of the row, or compare the whole word with strcmp.
void setup() {
Serial.begin(9600);
char word[] = "abc";
if (word == 'a') {
Serial.println("match");
}
}
void loop() {
}void setup() {
Serial.begin(9600);
char word[] = "abc";
if (word[0] == 'a') {
Serial.println("match");
}
}
void loop() {
}Mokxi’s build tab says: Text in quotes, or a char array, is a pointer