i have been trying to get the average value of an array for a project but when i try this:
int myarray[2];
void setup() {
myarray[0] = 1;
myarray[1] = 1;
myarray[2] = 1;
Serial.begin(115200);
for(int i = 0; i < sizeof(myarray); i++)
{
Serial.println(myarray[i]);
}
}
void loop(){
}
and my output is :
1
1
1
0
1061162752
0
1000
0
does anyone know where the 0 1061162752 0 1000 0 come from?