문 요약

statement:
labeled-statement

compound-statement

expression-statement

selection-statement

iteration-statement

jump-statement

try-except-statement /* Microsoft 전용 */

try-finally-statement /* Microsoft 전용 */

점프 문:
goto identifier ;

continue ;

break ;

return expressionopt;

compound-statement:
{ declaration-listoptstatement-listopt}

declaration-list:
declaration

declaration-list declaration

statement-list:
statement

statement-list statement

expression-statement:
expressionopt;

iteration-statement:
while ( expression ) statement

do statement while ( expression ) ;

for ( expressionopt; expressionopt; expressionopt) 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: /* Microsoft 전용 */
__try compound-statement

__except ( expression ) compound-statement

try-finally-statement: /* Microsoft 전용 */
__try compound-statement

__finally compound-statement

참고 항목

구 구조 문법