在C语言中,循环语法的含义如下: [英] What does the following for loop syntax mean in C?
本文介绍了在C语言中,循环语法的含义如下:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
for(;;)
{
//做类似于句柄等的操作
$ b我仍然在C的学习曲线上,所以如果你想的话,一个蹩脚的问题。解决方案这是一个无限循环。 (1)
真正唯一需要注意的是for循环看起来像
for(initialize vars; continue condition; counters)
。由于没有继续条件,它只是继续下去(除非在那里有一个休息或返回语句)。I came across this syntax, not sure what it means.
for( ; ; ) { //do stuff like read from a handle etc. }
I am still on my learning curve in C so vote down if you want if it's a lame question.
解决方案It's an infinite loop. Same as
while(1)
Really the only important thing to look at is that for loops look like
for (initialize vars; continue condition; counters)
. Since there's no continue condition it just keeps going (unless there's a break or return statement in there somewhere).这篇关于在C语言中,循环语法的含义如下:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文