For the given program, which XXX iterates through the array to find the state that is input (userState) until a match is found?
string stateNames[NUM_STATES];
int statePop[NUM_STATES];
string userState;
bool foundState = false;
unsigned int i;
scanf("%s",userState);
foundState = false;
for (i = 0; XXX; ++i) {
if (stateNames[i] == userState) {
foundState = true;
printf("%s, %d \n", userState, statePop[i]);
}
}
a.(i < NUM_STATES - 1)
b.(i < NUM_STATES)
c.(i < NUM_STATES - 1) && (!foundState)
d.(i < NUM_STATES) && (!foundState)