什么是ANSI C和K&放大器之间的主要区别; R C? [英] What are the major differences between ANSI C and K&R C?

查看:118
本文介绍了什么是ANSI C和K&放大器之间的主要区别; R C?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是ANSI C的维基百科的文章说

其中的ANSI C标准化进程的目的之一是生产K&放大器的一个超集; R C(第一个公布的标准),集成了许多的随后引入非官方的特点。然而,标准委员会还包括了一些新的功能,如函数原型(从C ++编程语言借用),以及更强大的preprocessor。参数声明的语法也被改变,以反映C ++风格。

One of the aims of the ANSI C standardization process was to produce a superset of K&R C (the first published standard), incorporating many of the unofficial features subsequently introduced. However, the standards committee also included several new features, such as function prototypes (borrowed from the C++ programming language), and a more capable preprocessor. The syntax for parameter declarations was also changed to reflect the C++ style.

这让我觉得有差异。不过,我没有看到K&放大器之间的比较; R C和ANSI C有这样的文件吗?如果不是,有什么主要区别?

That makes me think that there are differences. However, I didn't see a comparison between K&R C and ANSI C. Is there such a document? If not, what are the major differences?

编辑:我相信,K&放大器; R书中说ANSI C的旗号。至少我认为,我在家里做的版本。因此,也许没有区别了?

I believe the K&R book says "ANSI C" on the cover. At least I believe the version that I have at home does. So perhaps there isn't a difference anymore?

推荐答案

有可能会出现一些混乱这里什么K&安培; R C是。这个词指的是记录在第一版的语言C程序设计语言。粗略地说:贝尔实验室的C编译器的输入语言大约1978年

There may be some confusion here about what "K&R C" is. The term refers to the language as documented in the first edition of "The C Programming Language." Roughly speaking: the input language of the Bell Labs C compiler circa 1978.

Kernighan和Ritchie参与了ANSI标准化进程。在ANSI C方言所取代K&安培; R C及C语言程序设计采用ANSI约定后续版本。 K&安培; R C。是死语言,除非是一些编译器仍然接受传统code程度

Kernighan and Ritchie were involved in the ANSI standardization process. The "ANSI C" dialect superceded "K&R C" and subsequent editions of "The C Programming Language" adopt the ANSI conventions. "K&R C" is a "dead language," except to the extent that some compilers still accept legacy code.

这篇关于什么是ANSI C和K&放大器之间的主要区别; R C?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆