Hi, I have this code in a program that seems to get caught in this infinite loop and won't get out of it:
>>>>>>>>>>>>>>>>>>>>>>
else{
for(i=0; i<size; i++){
if(condition==FALSE && x!=0{
addToArray(a, i);
}
}
}
>>>>>>>>>>>>>>>>>>>>>>>>>>
Basically the values are as follows:
size >= 1 (but less than 10)
condition is a boolean TRUE or FALSE
x an integer value
addToArray - adds i to the array a.
Why is it getting stuck in this loop!!!!!
Please!
Thanks,
D
>>>>>>>>>>>>>>>>>>>>>>
else{
for(i=0; i<size; i++){
if(condition==FALSE && x!=0{
addToArray(a, i);
}
}
}
>>>>>>>>>>>>>>>>>>>>>>>>>>
Basically the values are as follows:
size >= 1 (but less than 10)
condition is a boolean TRUE or FALSE
x an integer value
addToArray - adds i to the array a.
Why is it getting stuck in this loop!!!!!
Please!
Thanks,
D