-
카테고리
-
세부 분야
프로그래밍 언어
-
해결 여부
미해결
full expression의 의미
23.01.16 00:06 작성 조회수 275
0
5.9 표현식과 문장 수업에서 full expression의 의미가 '값을 언제 어디서 계산해야 하는지 명확한 expression' expression에 sequence point가 있는??
대충 이런 의미인가요?? expression과 full expression이 어떤 차이가 있는지 궁금해서 질문 남깁니다.
답변을 작성해보세요.
0
강민철
2023.01.17
아래 C 표준을 보면 명확한 표현을 알 수 있습니다.
A full expression is an expression that is not part of another expression or of a declarator. Each of the following is a full expression: an initializer that is not part of a compound literal; the expression in an expression statement; the controlling expression of a selection statement (
if
orswitch
); the controlling expression of awhile
ordo
statement; each of the (optional) expressions of afor
statement; the (optional) expression in a return statement. There is a sequence point between the evaluation of a full expression and the evaluation of the next full expression to be evaluated.
http://port70.net/~nsz/c/c11/n1570.html#6.8
요컨대 다른 표현식이나 선언자의 일부가 아닌 표현식을 완전 표현식(full expression)이라 부릅니다.
답변 1