c语言中for(;;){}
是啥意思
c语言中for(;;){}
是一个典型的循环结构。
#include <stdio.h>
main( )
{
for(int i = 0; i < 5; i++)
{
printf("%d\t",i);
}
printf("\n");
}
这个程序可以输出0 1 2 3 4这5个数
是一个典型的循环结构。
#include <stdio.h>
main( )
{
for(int i = 0; i < 5; i++)
{
printf("%d\t",i);
}
printf("\n");
}
这个程序可以输出0 1 2 3 4这5个数
温馨提示:答案为网友推荐,仅供参考