Udostępnij za pośrednictwem


Podsumowanie instrukcji języka C

statement:
labeled-statement
compound-statement
expression-statement
selection-statement
iteration-statement
jump-statement
try-except-statement /* Specyficzne dla firmy Microsoft */
try-finally-statement /* Specyficzne dla firmy Microsoft */

jump-statement:
goto identifier ;
continue ;
break ;
returnexpressionZdecydować ;
__leave ; /* Specyficzne dlafirmy Microsoft 1 */

compound-statement:
{declaration-listopt opt opt statement-list }

declaration-list:
declaration
declaration-list declaration

statement-list:
statement
statement-list statement

expression-statement:
expressionZdecydować ;

iteration-statement:
while ( expression ) statement
do statement while ( expression ) ;
for (expressionopt opt ; expression; expression ) statement

selection-statement:
if ( expression ) statement
if ( expression ) statement else statement
switch ( expression ) statement

labeled-statement:
identifier : statement
case constant-expression : statement
default : statement

try-except-statement: /* Specyficzne dla firmy Microsoft */
__try compound-statement __except ( expression ) compound-statement

try-finally-statement: /* Specyficzne dla firmy Microsoft */
__try compound-statement __finally compound-statement

1 Słowo __leave kluczowe jest prawidłowe tylko w __try bloku obiektu try-except-statement lub try-finally-statement.

Zobacz też

Gramatyka struktury fraz