I think I have this set up correctly, I wanted to print out the value stored in the array at the index number [2].
Instead of printing the value in position 2 of the array, it prints out "2".
What have I missed?
int array1[5] = {0,1,2,3,4};
void setup(){
Serial.begin(9600);
}
void loop(){
Serial.println(array1[2]);
}