while(cond) // fine
for(;cond;) //fine
but when I remove the conditional part
while() //syntax compilation error
for(;;) //Infinite loop
How these loops are internally implemented ?
Or,how does compiler (parser) know that empty condition in while
is error and in for
as Infinite?
I didn't find anything about this particularly, I think guys like me (who are beginner) in C might have same confusion
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…