您的位置:首页 > 其它

C和Pascal得比较(非具体语法方面)

2011-08-13 09:44 141 查看
The computer programming languages C and Pascal have
similar times of origin, influences, and purposes. Both were used to design (and compile) their own compilers early in their lifetimes.

Both C and Pascal are old programming languages: The original Pascal definition appeared in 1969 and a first compiler in 1970. The first version of C appeared in 1972.

Both are descendants of the ALGOL language
series. Algol introduced structured programming,
where programs are constructed of single entry and single exit constructs such as if, while, for and case.
Pascal stems directly from Algol-W,
while it shared some new ideas withAlgol 68.
The C language is more indirectly related to Algol, originally through B, BCPL,
and CPL,
and later through Algol 68 (for example in case of struct and union)
and also Pascal (for example in case of enumerations, const, typedef and
booleans). Some Pascal dialects also incorporated characteristics from C.

What is documented here is the Pascal of Niklaus Wirth, as standardized as ISO 7185 in 1982. The C documented is the language of Brian W. Kernighan and Dennis M. Ritchie, as standardized in 1989. The reason is that these versions
both represent the mature versions of the language, and also because they are the closest in time. C99 (the later C standard) features and features of new dialects of Pascal are not included in the comparison.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: