Analysis of Loop Statements in C Language

LI Rui-hua · Computer Knowledge and Technology · 2011

Loop structure is an important structure in the structured programming,and it is a basis for programming.C language provides three loop statements,while statements,do-while statements and for statements.These loop statements can solve the same problem,and can replace each orther in general.But they have their own characteristics,and slight difference.By analysising and comparing three loop statements,the paper indicates which statement will be selected in solving different problems,and there is some reference value in leaning C language.

Read the paper · More papers on PaperTik