3 回答

TA貢獻(xiàn)1775條經(jīng)驗(yàn) 獲得超8個(gè)贊

TA貢獻(xiàn)1802條經(jīng)驗(yàn) 獲得超4個(gè)贊
函數(shù)指示符、實(shí)際參數(shù)中的實(shí)際參數(shù)和子表達(dá)式的計(jì)算順序未指定,但在實(shí)際調(diào)用之前有一個(gè)序列點(diǎn)。
pa
$ gcc -Wall -W -ansi -pedantic test.c -o test test.c: In function ‘main’:test.c:9: warning: operation on ‘pa’ may be undefined test.c:9: warning: operation on ‘pa’ may be undefined test.c:13: warning: operation on ‘pa’ may be undefined test.c:13: warning: operation on ‘pa’ may be undefined test.c:17: warning: operation on ‘pa’ may be undefined test.c:17: warning: operation on ‘pa’ may be undefined test.c:20: warning: control reaches end of non-void function

TA貢獻(xiàn)1827條經(jīng)驗(yàn) 獲得超8個(gè)贊
int i=1;printf("%d %d %d\n", i++, i++, i);
2 1 3
1 2 3
2 1 3
1 2 3
1 2 3
1 2 3
- 3 回答
- 0 關(guān)注
- 608 瀏覽
添加回答
舉報(bào)