Statements (C)

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Statements (C).

The statements of a C program control the flow of program execution. In C, as in other programming languages, several kinds of statements are available to perform loops, to select other statements to be executed, and to transfer control. Following a brief overview of statement syntax, this section describes the C statements in alphabetical order:

break statementif statement
compound statementnull statement
continue statementreturn statement
do-while statementswitch statement
expression statementtry-except statement
for statementtry-finally statement
goto and labeled statementswhile statement

C Language Reference

Show: