语句 (C)Statements (C)

C 程序的语句控制程序执行流。The statements of a C program control the flow of program execution. 在 C 中就像在其他编程语言中一样,有多种语句可用于执行循环、选择要执行的其他语句和传输控制。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. 在简短的语句语法概述之后,本节将按字母顺序介绍 C 语句:Following a brief overview of statement syntax, this section describes the C statements in alphabetical order:

break 语句break statement if 语句if statement
复合语句compound statement null 语句null statement
continue 语句continue statement return 语句return statement
do-while 语句do-while statement switch 语句switch statement
表达式语句expression statement try-except 语句try-except statement
for 语句for statement try-finally 语句try-finally statement
goto 和标记语句goto and labeled statements while 语句while statement

另请参阅See Also

C# 语言参考C Language Reference