continue is a keyword.The continue statement can only be use within loop.On execution it transfers the control to the beginning of the loop, Thus ignoring the execution of all other statement written below it within the loop. A continue statement should always be dependent upon the condition. Syntax of continue statement in for loop -: for( _ ; _ ;_ ) { _ _ if(condition) continue; else _ _ } Example of continue statement in for loop -: ads #include<stdio.h> #include<conio.h> main() { int i=1; for(i=1;i<=5;i++) { if(i==3) continue; else printf(" %d \n ",i); } ...
" The Techprogramiz is a computer science portal for C language. It contains well written, well thought and well explained C programming articles,basic to advance level"