I have such an loop:
int i = 1230;
while(i<1300){
int k = 0;
Flight removedItem = RemoveQ(&Item);
if(removedItem.C_TIME <= 1230){
k = k + 1;
printf("%d", removedItem.C_TIME);
}
i = i + 5;
printf("%d", removedItem.C_TIME); // it prints correct values here
}
Why the if statement does not work ?? I am sure the type of C_TIME is int...