1A const pointer is stored in a plain one
Declare the new pointer const as well, if you only read the text.
void setup() {
Serial.begin(9600);
const char* word = "hello";
char* copy = word;
Serial.println(copy);
}
void loop() {
}void setup() {
Serial.begin(9600);
const char* word = "hello";
const char* copy = word;
Serial.println(copy);
}
void loop() {
}