For statement inside setup and loop function

pantherturm:
What i want to ask are these "for" valid inside the setup and loop functions?
for an unknown reason the brackets in positions_check are not shown
const int pos_00_sensorPIN = 22;
here are the rest of the pos_##_sensorPIN = # declared
int positions_check[6] ={pos_00_sensorPIN,pos_01_sensorPIN,pos_02_sensorPIN,pos_10_sensorPIN,pos_11_sensorPIN,pos_12_sensorPIN,};
setup() {

  • for(int i=0; i<2; i++)*
    pinMode(positions_check ,INPUT);//setting the context of this table as inputs
    }//setup
    loop() {
    * for(int i=0; i<2 ;i++)*
    positions_check = digitalRead(positions_check ); //reads the current status of position sensors
    }//loop
    [/quote]