how to use conditional on array?

I have an array of five optical sensors, i want to see each of them is detecting white, how can i make something like this?

if(array[] = {0,0,0,0,0})
   Serial.println("no sensors");


Note: This is not the full code

Not going to work. For individual sensors, something like:

   int i;

   for (i = 0; i < sizeof(array) / sizeof(array[0]); i++) {
      if (array[i] == 0) {
         Serial.print("Sensor ");
         Serial.println(" has no sensor");

should work. If you can do block compares, look at memcmp().