ANSI C 和 ISO C 之间有什么区别吗?

发布于 2024-10-03 20:21:16 字数 84 浏览 0 评论 0原文

据我了解,C 语言既有 ANSI 标准,也有 ISO 标准。这两个标准之间有什么区别吗?如果有,它们是什么?如果没有区别,那么制定两个标准还有什么意义呢?

I understand that there is both an ANSI standard and an ISO standard for C. Are there any differences between these two standards? If so, what are they? And if there is not a difference then what's the point of having two standards?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

染火枫林 2024-10-10 20:21:16

1990 年,ANSI C 标准(经过一些小的修改)被国际标准化组织采用,称为 ISO/IEC 9899:1990。该版本有时称为 C90。因此,术语“C89”和“C90”本质上指的是相同的语言。

来源,情况类似,但 C99。还有一个关于此事的 C FAQ 条目

有两个标准的原因很简单:ANSI 是一个北美标准机构,而 ISO 是一个国际标准机构。

In 1990, the ANSI C standard (with a few minor modifications) was adopted by the International Organization for Standardization as ISO/IEC 9899:1990. This version is sometimes called C90. Therefore, the terms "C89" and "C90" refer to essentially the same language.

Source, the situation is similar but reversed for C99. There is also a C FAQ entry on the matter.

The reason that there are two standards is simple: ANSI is a north-american standards body while ISO is an international one.

微暖i 2024-10-10 20:21:16

除了新修订版将先于 ANSI 等国家标准机构获得 ISO 批准之外,两者是相同的。然而,常见的错误用法是“ANSI C”表示 ANSI 于 1989 年标准化的原始语言,而“ISO C”、“ISO C99”或简称“C99”表示当前标准1999 年被 ISO 通过。

Aside from the fact that new revisions will be ratified by the ISO before national standards bodies like ANSI, the two are the same. However, common incorrect usage is for "ANSI C" to mean the original language standardized by ANSI in 1989, and "ISO C", "ISO C99", or simply "C99" to mean the current standard adopted by the ISO in 1999.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文