The fact you broke out of the loop does not make it finite.
In this case, the loop should not have been infinite to start with:
Code:
i = 5;
for(;i<=10;++i)
{
printf("%d", i)
}
A break is usually a sign of a poorly desinged loop. That is, the code that regulates the loop should not appear inside the loop. This is why the for statement was put into C in the first place.
Comment