How to Serial.print() an Array?

i'm trying to print on Serial monitor my array which contains datas capted by a sensor. but an error occured. in the Arduino console i can read something as "invalid conversion from int to int". i tryed to print other values like char with letters and the isn't any problem, but i really can't print my int array with only numbers...

anyway my code is very simple and thank you very much if can help me!

example.ino (136 Bytes)

I can't see your code, but a for loop is the usual way.

my code is that.

int example[]={1,3,5};

void setup() {
  
  Serial.begin(9600);
}

void loop() {
  
Serial.println(example);
delay(1000);
}
for (int x = 0; x < 3; x++)
  {
     Serial.println(example[x]);
  }
for (int element : example) // for each element in the array
  Serial.println(element) // print the current element

Pieter

Why not "auto element"?