What does “for(;;)” mean?

后端 未结 5 1661
甜味超标
甜味超标 2020-12-01 09:36

In C/C++, what does the following mean?

for(;;){
    ...
}
5条回答
  •  我在风中等你
    2020-12-01 10:02

    It's an infinite loop, equivalent to while(true). When no termination condition is provided, the condition defaults to true.

提交回复
热议问题