I don't get that. It's a 2 byte string. 10 and 0
I'm pretty sure that if you run this
const char* data = "\n";
void setup() {
Serial.begin(115200); Serial.println();
Serial.print("size of data = "); Serial.println(sizeof data);
for (byte i = 0; i < sizeof data; i++) {
Serial.print(i); Serial.print(" -> "); Serial.println((byte) data[i]);
}
}
void loop() {}
the Serial monitor will tell you
size of data = 2
0 -> 10
1 -> 0