2004-10-08から1日間の記事一覧

gccの関数の引数呼び出し順

gcc

gccの関数の引数の評価は、後ろの引数から評価されていくんですね。知らなかった。 int main() { test(a(),b()); return 0; } void test(int a,int b){} int a(){ printf("a\n");return 0;} int b(){ printf("b\n");return 0;} として実行すると、 a b とは…