1More values than the declared size
int values[3] holds three items. Declare room for all of them, or write int values[] and let the compiler count.
void setup() {
Serial.begin(9600);
int values[3] = {1, 2, 3, 4};
Serial.println(values[2]);
}
void loop() {
}void setup() {
Serial.begin(9600);
int values[] = {1, 2, 3, 4};
Serial.println(values[3]);
}
void loop() {
}