FrontPage > C/C++ > C言語 > C言語 基本 > continue
continue†
ループ処理から抜けずに、次の処理に移る場合に記述します。
「while」「for」内にて使用します。
サンプル†
#include <stdio.h>
main(){
int i = 0;
for (i = 0; i < 5; i++){
if (i==1) continue;
if (i==3) continue;
printf ("i = %d\n", i);
}
}
i = 0
i = 2
i = 4