Share via


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 statement if statement
compound statement null statement
continue statement return statement
do-while statement switch statement
expression statement try-except statement
for statement try-finally statement
goto and labeled statements while statement

See Also

C Language Reference