タグ

C++とC11に関するUSAGI-WRPのブックマーク (1)

  • C/C++関数引数の評価順序 - yohhoyの日記

    プログラミング言語C/C++では、関数実引数の評価順序は未規定(unspecified)となっている。標準規格における言及箇所のメモ。 2018-02-02追記:C++17仕様では未規定(unspecified)から “不定順の順序付け(indeterminately sequenced)” に変更され、関数実引数の評価順序がより強く規定されるようになった。とはいえ、通常のプログラムにはほとんど影響しない。詳細は id:yohhoy:20180202 参照。 C99 JTC1/SC22/WG14 N1256 6.5.2.2/p10より引用。 10 The order of evaluation of the function designator, the actual arguments, and subexpressions within the actual arguments is

    C/C++関数引数の評価順序 - yohhoyの日記
  • 1