I can't figure it out why my program won't start executing the for loop: the logic for the for loop is correct, but when the program runs it just skips the for loop, without executing it. If i is equal to count, it should read last remaining elements from array called se and write to array finallyDone.
while(check && i < len){
int fi = first[i];
int se = second[j];
if(fi < se){
finallyDone[count] = fi;
i++;
}
else{
finallyDone[count] = se;
j++;
}
int l;
if(i >= len){
for(l = count; l < len * 2 - count; l++){
finallyDone[count + 1] = se;
}
check = false;
}
count++;
}