Unspecified, undefined and implementation defined behavior WIKI for C

前端 未结 2 1959
野趣味
野趣味 2020-11-30 05:01

Although there is plentiful of links about this subject on SO, I think that there is something missing: a clear explanation in plain language of what are the differences bet

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-30 05:51

    N1570 is a draft of the ISO C standard, very close to the official ISO document.

    N1256 is an earlier draft, incorporating the C99 standard plus changes from the three Technical Corrigenda.

    Annex J has 5 sections, each of which gathers information that's scattered through the rest of the standard:

    • J.1 Unspecified behavior
    • J.2 Undefined behavior
    • J.3 Implementation-defined behavior
    • J.4 Locale-specific behavior
    • J.5 Common extensions

提交回复
热议问题