Statements
Go Up to Statements Index
Statements specify the flow of control as a program executes. In the absence of specific jump and selection statements, statements are executed sequentially in the order of appearance in the source code. The following table shows the syntax for statements.
C++Builder Statements
statement |
labeled-statement |
labeled-statement: |
identifier : statement |
compound-statement: |
{ <declaration-list> <statement-list> } |
declaration-list: |
declaration |
statement-list: |
statement |
expression-statement: |
<expression> ; |
asm-statement: |
asm tokens newline |
selection-statement: |
if ( expression ) statement |
iteration-statement: |
while ( expression ) statement |
for-init-statement: |
expression-statement |
jump-statement: |
goto identifier ; |