I expected this program to serialprint "SAME!" but it does not. Why does it not?
char hist[40][14] = {"4444444444444", "1111100000000"
, "2222200000000", "3333300000000"
, "4444400000000", "0000000000000"
, "0000000000000", "8000000000000"
, "0000000000000", "1000000000000"
, "0000000000000", "0000000000000"
, "0000000000000", "0000000000000"
, "0000000000000", "0000000000000"
, "1230000000000", "0000000000000"
, "0000000000000", "0000000000000"
, "0000000000000", "0000000000000"
, "0000000000000", "0000000000000"
, "0000000000000", "8000000000000"
, "0000000000000", "1000000000000"
, "0000000000000", "0000000000000"
, "0000000000000", "0000000000000"
, "0000000000000", "0000000000000"
, "0000000000000", "0000000000000"
, "0000000000000", "0000000000000"
, "0000000000000", "0000000000000"
};
String bard = "4444444444444";
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
Serial.println(bard);
Serial.println(hist[0]);
if (bard.c_str()==hist[0]){
Serial.println("SAME!");
}
}
void loop() {
// put your main code here, to run repeatedly:
}