If the goal is to read the settings of the dip switches into an array, you have to define an array:
bool dipSwitch[ 4 ] ;
Then later load the array (could be more compact and could be inverted):
if(digitalRead(dipPins[ i ] ) == LOW){
dipSwitch[ i ] = LOW ;
}
else {
dipSwitch[ i ] = HIGH;
}
Important also to know is how the dip switches are wired and what you are going to do with pull up or pull down resistors.